34 - Boolean constant
Use of Boolean constants (true
/false
) in code (e.g. conditionals) is indicative of flawed logic. (see here)
- Boolean Constants ->
true
orfalse
- Use in Conditionals -> Unnecessary
- Flawed Logic -> Redundant Use
- Verify Usage
- Remove -> Simplify