Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JAVASCRIPT-1.0
-
Component/s: JavaScript
-
Labels:None
-
Number of attachments :
Description
<p>Avoid use of parentheses where not required by syntax or semantics</p>
<pre>
function sayHello() {
var a = typeof (37); // NOK
var b = typeof 38;
var c = {};
c.a = a;
c.b = b;
delete (a); // NOK
delete b;
void 0;
void (1); // NOK
}
</pre>
Implemented and pull request https://github.com/SonarCommunity/javascript/pull/1 created