View Categories

Avoid Using The With Keyword

Table of Contents
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.

Powered by BetterDocs