build: Fix lint failures with golangci-lint v2.15.0 #26
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 212 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.321
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #26"
general
weight: 0.35
hiddeco
#21 bumped golangci-lint from v2.9.0 to v2.15.0, and
make validate-linthas failed on main since. v2.15.0 deprecates linters and settings this config relied on, and its newer checks flag existing code. This PR keeps v2.15.0 and fixes the config and code so lint passes again.Config (
.golangci.yaml)exhaustructandgomodguard. Withdefault: all, their_v5/_v2replacements already run.exhaustruct_v5ignores//nolint:exhaustruct, so the three directives in the auto tests now nameexhaustruct_v5.extra-ruleswithextra.group-paramsandextra.clothe-returns.//nolint:revivedirectives ongpg.FromKey,program.Newandssh.FromKeywith oneunexported-returnexclusion rule. revive reports this on Go 1.26 but not on Go 1.27, so the inline directives would trip nolintlint onstable. An exclusion that matches nothing is not reported, so the rule works on both versions.Code
sshSignArgshelper for the repeated ssh-keygen argument prefix.errors.AsTypeto detect passphrase-protected SSH keys.program.newExecCommand. The program path is resolved by the caller and runs without a shell.godirective to 1.26.0, matching the other objectsigner modules.errors.AsTypeneeds Go 1.26.Testing
make validate-lintwith golangci-lint v2.15.0: 0 issues in all four modules.make test: passes in all four modules.