-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
None
-
None
-
None
-
None
-
None
We already run go vet but there are additional static analyzers out there that can offer value.
gopls added nilness and unusedparam and recently
https://github.com/golang/tools/releases/tag/gopls%2Fv0.15.0
problems nilness found
https://github.com/openshift/hypershift/pull/3698
problems nilenss would have prevented
https://github.com/openshift/hypershift/pull/3661
Go might enable this in go vet in the future
https://github.com/golang/go/issues/59714
Example invocation
go install golang.org/x/tools/go/analysis/passes/nilness/cmd/nilness@latest go vet -vettool $(which nilness) ./...