Controversial Ecmascript
The Controversial ruleset contains rules that, for whatever reason, are considered controversial. They are held here to allow people to include them as they see fit within their custom rulesets.
AvoidWithStatement
Since: PMD 5.0.1
Priority: 1
Avoid using with - it’s bad news
Example(s):
with (object) {
property = 3; // Might be on object, might be on window: who knows.
}