CWE-489: Boolean expressions should not be gratuitous

javascript
java

(Ankur) #1

SonarQube - 6.7.4
Rule - Boolean expressions should not be gratuitous (squid:S2589) has a reference marked to CWE-489, which looks wrong to me.

CWE-489 is about Leftover Debug Code that can create unintended entry points, which has nothing to do with a boolean expression being gratuitous.