Pattern: Mixing different binary boolean operators
Issue: -
Forbids mixing different binary boolean operators within a single expression without making precedence clear using parentheses.
Example of incorrect code:
if (true && true || true);
Example of correct code:
if ((true && true) || true);