commentedCodeCommented-out code creates confusion about intent and clutters the codebase. Version control preserves history, making dead code comments unnecessary. Delete the commented code entirely. If needed later, retrieve it from git history.small-rules/no-commented-codeDisallow commented-out code
commentedCodeCommented-out code creates confusion about intent and clutters the codebase. Version control preserves history, making dead code comments unnecessary. Delete the commented code entirely. If needed later, retrieve it from git history.This rule accepts one options object after the severity.
// const value = 1;// if (something) {}