ci: lint the example module #162
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.50) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 94 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.272
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #162"
general
weight: 0.35
tthayer
What
Adds
example/to thego-lintCI job and fixes the 27 findings that were hiding there.example/is a separate Go module, so the rootgolangci-lintinvocation never reached it — despite it carrying every integration test in the repo, including the only coverage of the partitioned-parentALTERsuppression (SQLSTATE 42809) added in #159/#160.Findings fixed (27 → 0)
| Fix | Count |
|---|---|
|
--fix(whitespace, godot) | 9 || revive
var-naming:fakeTenantIds→fakeTenantIDs,masterSelectSql→masterSelectSQL,fmtSql→fmtSQL,selectSql→selectSQL,eventIds→eventIDs| 14 || forbidigo: dropped a leftover debug
fmt.Println()| 1 || gosec G115:
strconv.ParseInt(s, 2, 64)→ParseUint(s, 2, 8)inbitStringToBytes, so thebyte()conversion is structurally bounded rather than merely bounded in practice | 1 || revive
line-length-limit: hoisted a 201-char query intoconst updatedPetQuery| 1 |The one config carve-out
gomoddirectivesflagsexample/go.mod'sreplace github.com/ductone/protoc-gen-pgdb => ../, which is how the example module consumes the in-repo library and must stay.Note this is not expressible via the existing
replace-allow-listsetting — that governs non-local replacements only, and the firing check here is the separatereplace-localboolean. Rather than flipreplace-local: true(which would disable the check for the rootgo.modtoo), the exclusion is scoped to the single file.Verified scoped, not blanket: with a local
replacetemporarily added to the rootgo.mod,gomoddirectivesstill fires on it.Verification
golangci-lint runclean in both modulesgo test ./...passes in both modules (example/integration tests against PG16 + pgvector)Closes IGA-3723.
🤖 Generated with Claude Code