IDE extension that lets you fix coding issues before they exist!
Setup is effortless and analysis is automatic for most languages
Fast, accurate analysis; enterprise scalability
This rule raises an issue when a constant expression is used as a condition in an if, elif, a conditional expression or other boolean expressions.
if
elif
When a constant is used as a condition, either it has no effect on the execution flow and it can be removed, or some code will never be executed and it is a bug.