Avoid using for statements without using curly braces

Impact area

Manageability

Severity

Medium

Affected element

Lightning

Rule ID

SF-0061

Impact

Not including braces in conditional and loop statements may cause unexpected behavior.

Remediation

Use braces to surround all code blocks.

Time to fix

30 min

References

See the PMD documentation article: ForLoopsMustUseBraces.

What's here


Related content

PMD - Lightning rules




Last modified on Jun 10, 2020