-
| Hello, Started using vscode clone. Just by incident noticed highlighted code in the IDE. This was unusedwrite Analyzer error. Looks like Couldn't find any other ways to run it. Tried golangci-lint, staticcheck and go vet. I would prefer to have one linters runner in the project. How do I integrate this analyzer into golangci-lint? This analyzer finds common annoying bug in for loops where people change fields of the iterator forgetting to save the change. This mistake is so easy to make: for _, e := range aList { e.x = "foo" } |
Beta Was this translation helpful? Give feedback.
Answered by ldez Nov 6, 2024
Replies: 1 comment 2 replies
-
| Hello, You should enable the check: linters-settings: govet: enable: - unusedwrite |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Hello,
You should enable the check:
https://golangci-lint.run/usage/linters/#govet