VBC-016: commented-out-code
warningCategory: 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 totalPattern
regex
^\s*//\s*(function|const|let|var|if|for|while|return|class|export|import)\b