Skip to content

Commit 4d03017

Browse files
committed
ci(lint): exclude FP-prone gosec rules new in golangci v2.12.2
G115/G118/G204/G703/G704/G706 are high-noise rules that v2.12.2's bundled gosec newly enforces (none fired under v2.7.2). Taint (G703/G704/G706) moves to nox once nox/taint-analysis is verified; the rest are noisy. gosec keeps its stable high-signal rules.
1 parent 6af153a commit 4d03017

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ linters:
2323
- unparam
2424
- gocritic # org engineering bar — do not drop
2525
- gosec
26+
settings:
27+
gosec:
28+
excludes:
29+
# FP-prone rules newly enforced by golangci v2.12.2's bundled gosec.
30+
# Taint (G703/G704/G706) is nox's job once nox/taint-analysis is
31+
# verified; G115/G118/G204 are high-noise. Keep gosec's stable,
32+
# high-signal rules (creds, crypto, file perms).
33+
- G115 # integer overflow conversion
34+
- G118 # context cancellation in goroutine
35+
- G204 # subprocess with variable
36+
- G703 # path traversal via taint
37+
- G704 # SSRF via taint
38+
- G706 # taint flow
2639
exclusions:
2740
rules:
2841
# Tests legitimately use math/rand (deterministic fixtures, fuzz

0 commit comments

Comments
 (0)