Avoid Using The With Keyword

< 1 min read

Impact Area

Manageability

Severity

High

Affected Element

Lightning

Rule ID #

SF-0055

Impact #

Use of the with statement is not recommended, as it may be the source of confusing bugs: you cannot determine what the identifier refers to by looking at its syntactic surroundings.

Remediation

Remove uses of the with keyword.

Time to fix #

15 min

References #

See the PMD documentation article: Avoidwithstatement.

Updated on March 21, 2025
Was it helpful ?