21 lines
470 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
include::../description.adoc[]
include::../noncompliant.adoc[]
== Exceptions
This rule will not raise an issue in either of these cases:
* When the condition is a single <code>const</code> of boolean value
----
const debug = false;
//...
if (debug) {
// Print something
}
----
* When the condition is the literal <code>0</code>, <code>1</code>, <code>true</code> or <code>false</code>.
In these cases it is obvious the code is as intended.
include::../see.adoc[]