-
-
Notifications
You must be signed in to change notification settings - Fork 67
feat(enrichment): magic-number heuristic analyzer #2018
Copy link
Copy link
Closed
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is needed
Description
Metadata
Metadata
Assignees
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is needed
New REES local analyzer that flags unexplained numeric literals newly added in non-test source (excluding 0/1/-1, array indices, and obvious enum-like assignments) that would be clearer as a named constant. Precision-first heuristic, pure compute, no network.
Deliverables
MagicNumberFinding({ file, line, value: string }) +magicNumber?key to review-enrichment/src/types.tsconst NAME = <n>declarations, skip test files; cap with maxFindingsReferences
review-enrichment/src/analyzers/redos.ts (precision-first local heuristic template)review-enrichment/src/analyzers/actions-pin.ts (hunk line-number tracking)review-enrichment/src/analyzers/registry.ts:158-175Part of #1499.
size: S · gittensor:feature