Skip to content

VBC-016: commented-out-code

warning

Category: clean-code
Analysis: Regex (line by line)
File types: .js, .ts, .tsx, .astro
Scope: comments only
Tags: clean-code

What it reports

Potential commented-out code detected at line {line}. If the code is no longer needed, delete it. Use Git for history.

Flagged

js
// const legacy = compute();

Not flagged

js
// computes the running total

Pattern

regex
^\s*//\s*(function|const|let|var|if|for|while|return|class|export|import)\b

Released under the MIT License.