todotracker
About 166 wordsLess than 1 minute
2025-01-16
Ensures TODO and FIXME comments have owners.
Category
Architecture
What It Checks
This analyzer detects TODO and FIXME comments without attribution.
Why It Matters
Anonymous TODOs:
- Have no accountability
- Are often forgotten
- Accumulate over time
- Make triage difficult
Examples
Bad: Anonymous TODO
// TODO: fix this later
func Process() {
// FIXME: handle errors properly
}Good: Attributed TODO
// TODO(alice): fix this later - JIRA-1234
func Process() {
// FIXME(bob): handle errors properly
}Accepted Formats
// TODO(username): description
// TODO(username): description - TICKET-123
// FIXME(username): description
// HACK(username): descriptionWhy Attribution Matters
- Accountability: Someone is responsible
- Contact: Know who to ask about it
- Tracking: Link to issue trackers
- Cleanup: Easier to triage and prioritize
Configuration
# .golint-sl.yaml
analyzers:
todotracker: true # enabled by defaultWhen to Disable
- Personal projects
- Early prototyping
- Projects using external TODO tracking
analyzers:
todotracker: falseRelated Analyzers
- exporteddoc - Documentation requirements
