feat(lint): add namelen rule for overlong names #99
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 325 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.346
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #99"
general
weight: 0.35
github-actions[bot]
<!-- claude-projects-attribution: {"github_login":"miru-agents"} -->
_Requested by bens-agent · project thread_
Summary
namelenrule flagging names over 20 chars (locals, params), 50 (test funcs) or 30 (all others).Decisions
Names
namelen/RuleNameLenovernamelength: matchesfunclen,filelen,linelen.MaxTestNameLenoverMaxTestFuncLen:MaxFuncLenmeans length in lines.MaxNameLen/MaxLocalNameLen: mirror varname'sMinNameLen.Precedent
linter/namelen/*.gomirrorslinter/varname/: checker/visitor, redeclared skip, constants not flags, rune count, nolint on declaring line.Open questions
runChecks' twocontinueguards were merged. Keep, or first move fixer helpers out of rules.go in their own PR? Default: keep.Pkg,Ptr,Decls,BOM). OK? Default: keep.<!--
Left out
.covgate: ready step.redeclared(varname, namelen) viaanalysis.-->
---
_Generated by Claude Code_
<!-- codesmith:footer -->
---
<a href="https://dashboardbackend.blacksmith.sh/track/run-proof?expires=1797970461&installation_model_id=425273&pr_number=99&ref=codesmith_pr_footer&repository=mirurobotics%2Fgotools&return_to=https%3A%2F%2Fgithub.com%2Fmirurobotics%2Fgotools%2Fpull%2F99&variant=proof_this_pr&signature=0d965acf8c95b969378bbfac131ee7dfab0468af4798e25905e8f892e0a793df"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-proof-this-pr-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/proof-proof-this-pr-v2-light.svg"><img alt="Proof this PR" src="https://pr-comments-assets.blacksmith.sh/codesmith/proof-proof-this-pr-v2-dark-3x.png" width="121" height="28"></picture></a>
<sup><a href="https://app.blacksmith.sh/mirurobotics/codesmith/gotools/pr/99?autoLogin=true&ref=codesmith_pr_footer">Open in [code]smith</a> · Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>
<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->