Keep v1 lint rules under golangci-lint v2 (no ST/QF, no G704/G705).
CI / vulncheck (pull_request) Successful in 7s
CI / check-and-test (pull_request) Successful in 38s

This commit is contained in:
s1d3sw1ped_bot
2026-08-31 20:30:36 +00:00
parent 36b613b6cd
commit 35d698a232
+13 -5
View File
@@ -20,12 +20,20 @@ linters:
errcheck: errcheck:
check-type-assertions: false check-type-assertions: false
check-blank: false check-blank: false
# gosec: no extra settings. Broad global excludes removed (G104/G115/G301/G304/G306). # gosec: keep source-level //nosec for G104/G115/G301/G304/G306.
# - G301 addressed by switching cache MkdirAll to 0700 (least privilege for CDN content). # G704/G705 are new taint-analysis rules (SSRF/XSS) not present in v1.64.8;
# - Remaining justified cases documented with precise //nosec (or #nosec) + comments at the call sites. # a CDN cache proxy forwards upstream URLs and response bodies by design.
# - G104 largely eliminated by errcheck + explicit _ = handling (or defer wrappers). gosec:
excludes:
- G704
- G705
# v1 staticcheck checks: ["all"] meant SA* only. v2 merged stylecheck (ST*)
# and quickfix (QF*) into staticcheck; keep the previous SA*+gosimple set.
staticcheck: staticcheck:
checks: ["all"] # SA1019 exclusion removed (no deprecated API usages in tree) checks:
- all
- "-ST*"
- "-QF*"
govet: govet:
enable-all: true enable-all: true
disable: disable: