VBC-907: anonymous-todo
warningCategory: clean-code
Analysis: Regex (line by line)
File types: .js, .ts, .tsx, .py, .sh, .go, .rs, .java, .c, .cpp, .cs, .kt, .swift, .rb, .astro
Scope: comments only
Tags: clean-code
What it reports
Unattributed debt marker at line {line}. Nobody owns it, so nobody will fix it. Use TODO(owner): or reference an issue such as TODO: #123.
Flagged
js
// TODO: wire up retriesjs
// TODO: drain the queue before closingNot flagged
js
// a TODO. Sites that build a header from dynamic data need onejs
/// Reviewer note: `?` used to be a TODO no-opjs
// TODO(fab): wire up retriesjs
// TODO: #123 wire up retriesPattern
regex
^[^\n\w]*(?:TODO|FIXME|HACK|XXX)\b(?!\s*[\(\[][^)\]\n]+[\)\]])(?!\s*:?\s*(?:#\d+|[A-Z][A-Z0-9]+-\d+))