Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhandled-error: use full function name in error message #962

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

mmcloughlin
Copy link
Contributor

This PR updates the error message used by the unhandled-error rule to use
the full function name. The full function name matches the name used to
evaluate ignored functions in the configuration, therefore it's friendlier to
users to wish to configure an exlusion based on an error message.

The error message is sufficiently covered by existing tests, which are updated
in this PR.

Closes: #961

@mgechev mgechev merged commit be35a88 into mgechev:master Jan 8, 2024
4 checks passed
mfederowicz pushed a commit to mfederowicz/revive that referenced this pull request Jan 14, 2024
* update tests

* Update testdata/unhandled-error-w-ignorelist.go

* Update testdata/unhandled-error-w-ignorelist.go

---------

Co-authored-by: Denis Voytyuk <5462781+denisvmedia@users.noreply.github.com>
@ccoVeille
Copy link
Contributor

Thank you for implemeting this, it would help a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unhandled-error: error message function name does not match name used for exclusions
4 participants