MetaCredo.Check.Warning.OperationWithConstantResult (MetaCredo v0.1.0)

View Source

Detects arithmetic operations with a constant result or identity operand: x * 0 is always 0, and x + 0 is a no-op identity. These suggest dead code or incomplete expressions.

Category: Warning / Priority: normal