-
-
Notifications
You must be signed in to change notification settings - Fork 89
feat(enrichment): unsafe-any (TS) counter analyzer #2017
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
Projects
StatusShow more project fields
Done
New REES local analyzer that counts and locates explicit
anytype annotations andas anycasts newly introduced in TypeScript diffs — a type-safety erosion signal the reviewer can weigh. Pure compute over added lines in .ts/.tsx files, no network. Structural regex only (no type-checker), fail-safe.Deliverables
UnsafeAnyFinding({ file, line, kind: 'annotation'|'cast'|'assertion' }) +unsafeAny?key to review-enrichment/src/types.ts: any,<any>,as anyin added TS lines, ignoring occurrences inside string/comment where cheaply detectable; cap with maxFindingsReferences
review-enrichment/src/analyzers/redos.ts (regex-over-added-lines local analyzer with maxLineChars/maxFindings limits)review-enrichment/src/analyzers/registry.ts:158-175 (redos descriptor limits shape)review-enrichment/src/analyzers/types.ts (AnalyzerCategory 'quality')Part of #1499.
size: S · gittensor:feature