-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ignores unhandled errors of methods #3976
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello,
you have checked this box, can you give me the output of the errcheck linter? |
Hi, For the example I posted errcheck returns: main.go:6:11: os.Remove("test")
main.go:7:6: test() whereas golangci-lint seems to ignore |
This report is ignored by default, this is the exclusion rule EXC0001. To show the report, you have to disable the default exclusions: issues:
exclude-use-default: false or you have to disable this specific exclusion rule: issues:
include:
- EXC0001 It will be changed at some point: #456 (comment) |
Welcome
Description of the problem
My code has unhandled errors but running
golangci-lint run
has no output/finding.However running
errcheck
which is enabled per default as sub-linter outputs:When I manually write a function that returns an error and i put it in my code without handling the error it will be catched by
golangci-lint run
.So it seems to ignore methods and only checks for functions, but that's just a wild guess...
Version of golangci-lint
Configuration
Go environment
Verbose output of running
Code example or link to a public repository
Validation
The text was updated successfully, but these errors were encountered: