Squid:S2583: Java : Conditionally executed blocks should be reachable

Sep 16, 20211 min read 2 views

So if there is a block of code that is not reachable means it is a dead code and that piece of code should be removed. Noncompliant Code Example a = false; if (a) { // Noncompliant doSomething(); // never executed } if (!a || b) { // Noncompliant;...

Boolean checks should not be inverted
Primitive wrappers should not be instantiated only for "toString" or "compareTo" calls (squid:S1158)
SonarLint: Java - "@Override" should be used on overriding and implementing methods (squid:S1161)