Files
certctl/.golangci.yml
T
shankar0123 67ccbb46fd fix(ci): upgrade golangci-lint v1.62.2 to v2.11.4 for Go 1.25 support
The old v1 binary was built with Go 1.23 and rejected Go 1.25 targets.
Migrated .golangci.yml to v2 format: added version field, moved
linters-settings under linters.settings, removed deprecated linters
(structcheck/deadcode/varcheck), merged gosimple into staticcheck.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 23:01:06 -04:00

33 lines
621 B
YAML

version: "2"
run:
timeout: 5m
linters:
default: none
enable:
- errcheck
- govet
- staticcheck
- unused
- ineffassign
- typecheck
- gocritic
- gosec
- bodyclose
- noctx
settings:
errcheck:
check-type-assertions: true
gocritic:
enabled-tags:
- diagnostic
- performance
gosec:
excludes:
- G104 # Audit errors not checked (we have intentional fire-and-forget patterns)
- G304 # File inclusion via variable (needed for config-driven file paths)
exclusions:
max-issues-per-linter: 50
max-same-issues: 5