[source,csharp] ---- if (b == 0) // Noncompliant { DoTheThing(); } else { DoTheThing(); } int b = a > 12 ? 4 : 4; // Noncompliant switch (i) // Noncompliant { case 1: DoSomething(); break; case 2: DoSomething(); break; case 3: DoSomething(); break; default: DoSomething(); } ----