golangci-lint: enable reassign linter

Detects reassigning a top-level variable in another package.
https://github.com/curioswitch/go-reassign

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-02-08 18:29:42 +01:00
parent 04ae510a1e
commit c9f8758570

View File

@@ -24,6 +24,7 @@ linters:
- misspell # Detects commonly misspelled English words in comments.
- nilnesserr # Detects returning nil errors. It combines the features of nilness and nilerr,
- nosprintfhostport # Detects misuse of Sprintf to construct a host with port in a URL.
- reassign # Detects reassigning a top-level variable in another package.
- revive # Metalinter; drop-in replacement for golint.
- spancheck # Detects mistakes with OpenTelemetry/Census spans.
- staticcheck