@@ -26,6 +26,7 @@ formatters:
2626
2727linters :
2828 enable :
29+ - asasalint # Detects "[]any" used as argument for variadic "func(...any)".
2930 - bodyclose
3031 - copyloopvar # Detects places where loop variables are copied.
3132 - depguard
@@ -35,11 +36,15 @@ linters:
3536 - errcheck
3637 - errchkjson # Detects unsupported types passed to json encoding functions and reports if checks for the returned error can be omitted.
3738 - exhaustive # Detects missing options in enum switch statements.
39+ - exptostd # Detects functions from golang.org/x/exp/ that can be replaced by std functions.
40+ - fatcontext # Detects nested contexts in loops and function literals.
3841 - forbidigo
42+ - gocheckcompilerdirectives # Detects invalid go compiler directive comments (//go:).
3943 - gocritic # Metalinter; detects bugs, performance, and styling issues.
4044 - gocyclo
4145 - gosec # Detects security problems.
4246 - govet
47+ - iface # Detects incorrect use of interfaces. Currently only used for "identical" interfaces in the same package.
4348 - importas # Enforces consistent import aliases.
4449 - ineffassign
4550 - makezero # Finds slice declarations with non-zero initial length.
@@ -54,6 +59,7 @@ linters:
5459 - predeclared # Detects code that shadows one of Go's predeclared identifiers
5560 - reassign # Detects reassigning a top-level variable in another package.
5661 - revive # Metalinter; drop-in replacement for golint.
62+ - spancheck # Detects mistakes with OpenTelemetry/Census spans.
5763 - staticcheck
5864 - thelper # Detects test helpers without t.Helper().
5965 - tparallel # Detects inappropriate usage of t.Parallel().
0 commit comments