Inspectopedia
 
2024.3

Statement body without braces

Warning
Code Style
New
Last modified: 03 December 2024

Reports a if, while, for, or with statements whose body is not a block statement. Using code block in statement bodies is usually safer for downstream maintenance.