Avoid using the with keyword

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.

What's here


Related content

PMD - Lightning rules




Last modified on Jun 10, 2020