All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.javascript.S1940.html Maven / Gradle / Ivy

There is a newer version: 10.20.0.29356
Show newest version

Why is this an issue?

It is needlessly complex to invert the result of a boolean comparison. The opposite comparison should be made instead.

Noncompliant code example

if (!(a === 2)) { ... }  // Noncompliant

Compliant solution

if (a !== 2) { ... }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy