2 parents 10a8b2e + bb40a6c commit 84ed11eCopy full SHA for 84ed11e
1 file changed
.golangci.yml
@@ -25,6 +25,16 @@ linters:
25
linters:
26
- errcheck
27
- gocyclo
28
+ # SA5011 (possible nil pointer dereference) in test files fires on the
29
+ # idiomatic `got := f(); if got == nil { t.Fatalf(...) }; got.X` pattern —
30
+ # a nil deref in a test panics and fails loudly, so it carries no
31
+ # production signal. Suppressed by-check in _test.go only; production
32
+ # SA5011 still fails the build. golangci's analysis cache masks these
33
+ # until a cache-busting change (e.g. a go.mod bump) re-analyses.
34
+ - path: _test\.go
35
+ linters:
36
+ - staticcheck
37
+ text: "SA5011"
38
39
issues:
40
max-issues-per-linter: 0
0 commit comments