---
title: Avoid Using The With Keyword
description: "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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/avoid-using-the-with-keyword/"
updated: "2025-03-21"
category: PMD Rules
---

# 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](https://pmd.github.io/latest/pmd_rules_ecmascript_bestpractices.html#avoidwithstatement).
