-
-
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
Detects Go 1.18 Fuzz methods as unused code #2650
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, Currently golangci-lint doesn't support go1.18, you can follow #2649 |
With a compiled version of golangci-lint with Go1.18, I don't reproduce the problem. |
This also happens for me with v1.45.2 downloaded through the install script: $ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin
golangci/golangci-lint info checking GitHub for latest tag
golangci/golangci-lint info found version: 1.45.2 for v1.45.2/linux/amd64
golangci/golangci-lint info installed /usr/local/bin/golangci-lint
$ golangci-lint run
level=warning msg="[linters context] gosimple is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=warning msg="[linters context] staticcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=warning msg="[linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649."
level=warning msg="[linters context] unused is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649."
querier_fuzz_test.go:11:6: `FuzzTarget_ToString` is unused (deadcode)
func FuzzTarget_ToString(f *testing.F) {
^
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1 But that does appear to be compiled with Go 1.18? The .golangci.yml, and the querier_fuzz_test.go for which |
Thank you, I'm able to reproduce the problem, I will fix that quickly. |
Welcome
Description of the problem
Version of golangci-lint
Configuration file
none
Go environment
go version go1.18 linux/amd64
Verbose output of running
Code example or link to a public repository
The text was updated successfully, but these errors were encountered: