32 lines
453 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,javascript]
----
let x = (y / 2 + 1); //Compliant even if those parenthesis are useless for the compiler
if (a && ((x+y > 0))) { // Noncompliant
//...
}
return ((x + 1)); // Noncompliant
----
=== Compliant solution
[source,javascript]
----
let x = (y / 2 + 1);
if (a && (x+y > 0)) {
//...
}
return (x + 1);
----
include::../rspecator.adoc[]