-
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.
Replies: 1 comment 2 replies
-
Hello, You should enable the check: linters-settings:
govet:
enable:
- unusedwrite |
Beta Was this translation helpful? Give feedback.
Hello,
You should enable the check:
https://golangci-lint.run/usage/linters/#govet