Skip to content

VBC-056: stale-todo

warning

Category: 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
Supersedes: VBC-907, VBC-150 on the same line
Tags: docs

What it reports

Debt marker that admits it is temporary at line {line}. Temporary code that ships is permanent code. Give it an owner and a deadline, or finish it.

Flagged

js
// TODO: temporary shim until the new API lands

Not flagged

js
// TODO(fab): rework the cache key

Pattern

regex
\b(?:TODO|FIXME|HACK)\b[^\n]{0,90}?\b(?:temporar\w+|for now|quick fix|before (?:launch|release|prod\w*)|remove (?:this|later|before)|revisit|come back)\b

Released under the MIT License.