mirror of
https://github.com/moby/moby.git
synced 2026-08-04 15:11:00 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user