slop/todo-without-issue
TODOs reference an issue
| Severity | info |
| Tiers | all |
| Stacks | any |
| Scope | root |
| Kind | expr |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-slop@0.1.0 |
Requirement
Every TODO, FIXME, XXX or HACK comment names an issue: TODO(#123) or TODO(ABC-123).
Why
An untracked TODO is a wish; a tracked one has an owner and can be closed.
Check
For each item in:
codegrep("code", r'(//|#|/\*).*\b(TODO|FIXME|XXX|HACK)\b')item.text.matches(r'\b(TODO|FIXME|XXX|HACK)\b\s*\((#|[A-Z][A-Z0-9]+-)\d+\)')Fix
Open an issue and reference it, or do the work, or delete the note.
Agent instruction: Report each note; do not invent issue numbers.
See: https://fleetlint.org/baseline/#slop
Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.