Inspectopedia 2024.3 Help

Redundant code

'then' in multiline 'if'/'unless' block   New in this release

Reports redundant then keywords in multiline if/unless blocks.

Expression can be simplified   New in this release

Reports boolean expressions that can be simplified.

Redundant 'return' statement   New in this release

Reports redundant return keywords and statements.

Redundant semicolon  

Reports redundant semicolons in the code.

Redundant variable used as 'return' value   New in this release

Reports variables used as return values.

Last modified: 11 September 2024