Inspectopedia Help

Redundant code

'then' in multiline 'if'/'unless' block  

Reports redundant then keywords in multiline if/unless blocks.

Expression can be simplified  

Reports boolean expressions that can be simplified.

Redundant 'return' statement  

Reports redundant return keywords and statements.

Redundant semicolon  

Reports redundant semicolons in the code.

Redundant variable used as 'return' value  

Reports variables used as return values.

Last modified: 18 June 2024