Inspectopedia
 
2024.3

Suspicious indentation after control statement without braces

Warning
New
Last modified: 03 December 2024

Reports suspicious indentation of statements after a control statement without braces.

Such indentation can make it look like the statement is inside the control statement, when in fact it will be executed unconditionally after the control statement.

Example: