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.

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!