org.sonar.l10n.javascript.rules.javascript.Parentheses.html Maven / Gradle / Ivy
Avoid use of parentheses where not required by syntax or semantics.
The following code snippet illustrates this rule :
function sayHello() {
var a = typeof (37); // Non-Compliant
var b = typeof 38;
var c = {};
c.a = a;
c.b = b;
delete (a); // Non-Compliant
delete b;
void 0;
void (1); // Non-Compliant
}