-
-
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
scopelint reports false positives #281
Comments
Another example of same issue: for _, val := range vals {
i := sort.Search(…, func(i int) bool { … val … })
} Probably same happens with |
hi! |
Yes, it does reproduce. |
I just created an issue for scopelint. I think this one here can be closed because it's not a golangci-lint issue. |
Thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently pulled down the latest golangci-lint, and it is reporting false positives for scopelint on my table test. e.g.
In this case since the testing closure is executed immediately in the same iteration, the mistake discussed here: https://github.com/golang/go/wiki/CommonMistakes is not relevant.
The text was updated successfully, but these errors were encountered: