Avoid using "while" statements without using curly braces
Use braces to surround all code blocks
Impact area
Manageability
Severity
Medium
Affected element
Lightning
Rule ID
SF-0068
Impact
Not using braces is error prone and complicates debugging.
Remediation
Use braces to surround all code blocks.
Time to fix
30 min
References
See the PMD documentation article: WhileLoopsMustUseBraces.