-
-
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
staticcheck linter does not report S1023 and SA4011 #853
Comments
A probable cause: golangci-lint currently uses an "old" version of staticcheck. |
@egonelbre this should be fixed as part of upgrade of honnef.co/go/tools #1145 |
The update is in now, but the issue is still here as well. Tested with |
In In the code,
golangci-lint/pkg/config/config.go Lines 66 to 71 in 82778e2
|
I noticed this by running [staticcheck](https://staticcheck.dev). Unfortunately, golangci-lint is still using a deprecated version of this linter. See [here](golangci/golangci-lint#853) and [here](golangci/golangci-lint#357). Signed-off-by: Mihai Todor <[email protected]>
I noticed this by running [staticcheck](https://staticcheck.dev). Unfortunately, golangci-lint is still using a deprecated version of this linter. See [here](golangci/golangci-lint#853) and [here](golangci/golangci-lint#357). Signed-off-by: Mihai Todor <[email protected]> Signed-off-by: harshit-sp <[email protected]>
Apparently S1023 and SA4011 are never being reported when you only enable staticcheck in golangci-lint. But, when you run staticcheck separately it'll report the issues.
S1023 seems to be part of gosimple, but it's weird that it's needed at all, since I would assume it's part of staticcheck already.
SA4011, of course seems to be missing entirely.
Thank you for creating the issue!
Please include the following information:
Version of golangci-lint
Config file
Go environment
Code
Verbose output of running
The text was updated successfully, but these errors were encountered: