Skip to content

VBC-150: production-todo

warning

Category: core
Analysis: Regex (line by line)
File types: .js, .ts, .tsx, .py, .sh, .c, .cpp, .go, .rs, .java, .cs, .kt, .swift, .rb, .astro
Scope: comments only
Tags: maintenance

What it reports

Tracked debt marker still in the code at line {line}. It is attributed, so close the ticket or delete the marker before shipping.

Flagged

js
// TODO(fab): rework the cache key
js
// FIXME #1234 flaky under load

Not flagged

js
// TODO: rework the cache key
js
// explains the cache key

Pattern

regex
\b(?:TODO|FIXME|HACK|XXX)\b(?=\s*[\(\[][^)\]\n]+[\)\]]|\s*:?\s*(?:#\d+|[A-Z][A-Z0-9]+-\d+))

Released under the MIT License.