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.


Since: PMD 5.0.1

Avoid using with - it's bad news

with (object) {
  property = 3; // Might be on object, might be on window: who knows.