Skip to content

feat(enrichment): TODO/FIXME/HACK marker tracker analyzer #2016

Description

@JSONbored

New REES local analyzer that surfaces TODO/FIXME/HACK/XXX markers newly added in the diff, with the marker text and file:line — so a reviewer sees the PR is shipping known-incomplete work. Pure compute over added lines, no network.

Deliverables

  • Add TodoMarkerFinding ({ file, line, tag: 'TODO'|'FIXME'|'HACK'|'XXX', note?: string }) + todoMarker? key to review-enrichment/src/types.ts
  • Create review-enrichment/src/analyzers/todo-marker.ts: match a comment-anchored marker regex on added lines only (not existing markers), truncate note text, cap with maxFindings
  • Register a local descriptor (category 'quality', cost 'local', requires ['files']) in review-enrichment/src/analyzers/registry.ts with inline render()
  • Add review-enrichment/test/todo-marker.test.ts covering each tag, note truncation, added-only scoping, and the cap

References

  • review-enrichment/src/analyzers/actions-pin.ts (added-line scan template)
  • review-enrichment/src/analyzers/registry.ts:158-175 (local descriptor template)
  • review-enrichment/src/types.ts:289-311 (BriefFindings)

Part of #1499.


size: XS · gittensor:bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions