NO-JIRA: Fix staticcheck warnings across multiple packages #1109
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 181 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.311
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1109"
general
weight: 0.35
ankimaha-sys
Summary
Fix 34 staticcheck warnings across 14 files. Only safe, mechanical fixes — no behavioral changes.
Changes by category
| Check | Count | Description |
|-------|-------|------------|
| ST1005 | 7 | Lowercase error strings per Go conventions |
| S1039 | 9 | Remove unnecessary
fmt.Sprintffor string literals || SA4006 | 10 | Fix unused error values (assign to
_) || S1023 | 3 | Remove redundant
returnstatements || S1007 | 1 | Use raw string in
regexp.MustCompile|| S1005 | 1 | Remove unnecessary blank identifier in map lookup |
| S1024 | 1 | Use
time.Untilinstead oft.Sub(time.Now())|| SA6005 | 1 | Use
strings.EqualFoldfor case-insensitive comparison || SA4009 | 1 | Fix overwritten function argument in
CreateOrUpdateOnCredsExist|Verification
go build ./...passesgo vet ./...passesgofmtcleanstaticcheck ./...reports 0 warnings for the above categoriesU1000 (unused code) and SA1019 (deprecated API) warnings were intentionally left out of scope.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Standardized capitalization in some Azure and GCP validation error messages.
Chores
Made minor maintenance updates across cloud credential provisioning and testing. No other user-facing behavior changes are included.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->