We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
since go doesn't have exceptions, it's easy for a function that returns an error to be missed by callers
e.g.
func foo() error { return nil } func bar() { foo() // should be flagged! // do something else. } func bar2() { // yay! if err := foo(); err != nil { log.Fatal(err) } // do something else. }
The text was updated successfully, but these errors were encountered:
That is errcheck's domain. It does not fit into Staticcheck because it has too many false positives in the real world.
Sorry, something went wrong.
No branches or pull requests
since go doesn't have exceptions, it's easy for a function that returns an error to be missed by callers
e.g.
The text was updated successfully, but these errors were encountered: