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
It looks like the forked errcheck package (https://github.com/golangci/errcheck) is two years behind its current upstream (https://github.com/kisielk/errcheck). There are unfortunately some custom commits, so a trivial sync is not possible. What would it take to update it?
Is it possible to upstream some changes and avoid the use of a fork to ensure easy upgrades? (@kisielk @jirfag ?)
I ran into a false-positive errcheck warning with the following code:
errcheck
package main import ( "crypto/sha256" "fmt" ) func main() { h := sha256.New() h.Write([]byte("food")) fmt.Println(h.Sum(nil)) }
Using the golangci/golangci-lint:v1.27.0 Docker image it outputs:
golangci/golangci-lint:v1.27.0
main.go:10:9: Error return value of `h.Write` is not checked (errcheck) h.Write([]byte("food")) ^
This issue has been solved upstream two years ago via kisielk/errcheck#137.
Related issues:
The text was updated successfully, but these errors were encountered:
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Sorry, something went wrong.
I asked @kisielk here kisielk/errcheck#184 about adding a special code for golangci, so we can use the main repo instead of fork
SVilgelm
Successfully merging a pull request may close this issue.
It looks like the forked errcheck package (https://github.com/golangci/errcheck) is two years behind its current upstream (https://github.com/kisielk/errcheck). There are unfortunately some custom commits, so a trivial sync is not possible. What would it take to update it?
Is it possible to upstream some changes and avoid the use of a fork to ensure easy upgrades? (@kisielk @jirfag ?)
I ran into a false-positive
errcheck
warning with the following code:Using the
golangci/golangci-lint:v1.27.0
Docker image it outputs:This issue has been solved upstream two years ago via kisielk/errcheck#137.
Related issues:
The text was updated successfully, but these errors were encountered: