Skip to content

Latest commit

 

History

History

commented_code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

commented_code

What it does

Checks for code that has been commented out.

Why is this bad?

Commented code is often meant to be removed, but kept by mistake.

Known problems

  • Currently only checks for commented out statements in blocks.

  • Does not handle statements spanning multiple line comments, e.g.:

    // dbg!(
    //   x
    // );

Example

// dbg!(x);
f(x);

Use instead:

f(x);