Inspectopedia
 
2024.3

Negated conditional expression

Warning
Code Style
Last modified: 03 December 2024

Reports conditional expressions whose conditions are negated. Flipping the order of the conditional expression branches will usually increase the clarity of such statements.

Example: