-
-
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
golangci-lint 1.60.1 incorrectly reports SA3000: TestMain should call os.Exit
#4905
Comments
Hello, the report of |
@ldez Thank you for looking at this issue. Since go 1.15, we don't need to call os.Exit manually. https://go.dev/doc/go1.15
So I don't think golangci-lint should report that error on go 1.22. |
It's related to a change of staticcheck with the way to handle the Go version. |
related? |
I don't understand your comment. |
I'm not very good at English, so I apologize for my poor expression. As you may have noticed, it seems that the Go version for staticlint is not being propagated correctly. Thank you for your prompt response. |
@ldez Thank you! |
Welcome
typecheck
section of the FAQ.Description of the problem
golangci-lint 1.60.1 incorrectly reports
on go 1.22 or 1.23.
Note that golangci-lint 1.59.1 does not report SA3000.
Version of golangci-lint
Configuration
# no configuration file
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
go.mod:
main_test.go:
Then:
Note1: golangci-lint 1.59.1 does not report anything.
Note2: Standalone staticcheck does not report anything.
Validation
Supporter
The text was updated successfully, but these errors were encountered: