16 lines
223 B
Plaintext
16 lines
223 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
== Noncompliant Code Example
|
||
|
|
||
|
----
|
||
|
if ( !(a == 2)) { ...} // Noncompliant
|
||
|
bool b = !(i < 10); // Noncompliant
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
if (a != 2) { ...}
|
||
|
bool b = (i >= 10);
|
||
|
----
|