Skip to content

Files

Latest commit

 

History

History
22 lines (12 loc) · 536 Bytes

SimplifyBooleanExpression.md

File metadata and controls

22 lines (12 loc) · 536 Bytes

Pattern: Use of verbose boolean expression

Issue: -

Description

Checks for over-complicated boolean expressions. Currently finds code like if (b == true), b || true, !false, etc.

Rationale: Complex boolean logic makes code hard to understand and maintain.

Examples

To configure the check:

<module name="SimplifyBooleanExpression"/>

Further Reading