Drop empty gosec settings so golangci-lint v2 config verifies.
This commit is contained in:
+4
-5
@@ -20,11 +20,10 @@ linters:
|
|||||||
errcheck:
|
errcheck:
|
||||||
check-type-assertions: false
|
check-type-assertions: false
|
||||||
check-blank: false
|
check-blank: false
|
||||||
gosec:
|
# gosec: no extra settings. Broad global excludes removed (G104/G115/G301/G304/G306).
|
||||||
# Broad global excludes removed (G104/G115/G301/G304/G306).
|
# - G301 addressed by switching cache MkdirAll to 0700 (least privilege for CDN content).
|
||||||
# - G301 addressed by switching cache MkdirAll to 0700 (least privilege for CDN content).
|
# - Remaining justified cases documented with precise //nosec (or #nosec) + comments at the call sites.
|
||||||
# - Remaining justified cases documented with precise //nosec (or #nosec) + comments at the call sites.
|
# - G104 largely eliminated by errcheck + explicit _ = handling (or defer wrappers).
|
||||||
# - G104 largely eliminated by errcheck + explicit _ = handling (or defer wrappers).
|
|
||||||
staticcheck:
|
staticcheck:
|
||||||
checks: ["all"] # SA1019 exclusion removed (no deprecated API usages in tree)
|
checks: ["all"] # SA1019 exclusion removed (no deprecated API usages in tree)
|
||||||
govet:
|
govet:
|
||||||
|
|||||||
Reference in New Issue
Block a user