You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(lint): migrate golangci-lint config to v2 + fix repo-wide findings
CI lint has been red on every branch since the action's 'latest'
moved to golangci-lint v2, which rejects the v1 config schema (and
the last v1 release can't even run against Go 1.26). Migrated with
'golangci-lint migrate', then tuned:
- exhaustive: default-signifies-exhaustive (all flagged switches
already had an explicit default)
- drop goconst (pure noise: "true", "error", k8s condition strings)
- govet: disable shadow ('if err :=' inside an err scope is idiomatic)
- gocritic: disable hugeParam (controller-runtime passes specs by value)
- gochecknoinits excluded for api/ and cmd/ (kubebuilder scheme
registration pattern), gocyclo excluded for Reconcile loops
- errcheck back to defaults (check-blank flagged deliberate discards)
Code fixes: gofmt x4, misspell x4, QF1008 embedded selector, named
results on JWTValidator.Validate, nolint on the scaffolded
scheme.Builder. golangci-lint v2.12.2 now reports 0 issues.
0 commit comments