Find suspicious chained comparisons

Proprietary

Find chained comparisons that mix </<= with >/>= (for example 0 <= x >= 10), where the links point in opposite directions and the chain is almost always a mistake.

org.openrewrite.python.codequality.FindSuspiciousChainedComparison
mod run . --recipe=org.openrewrite.python.codequality.FindSuspiciousChainedComparison

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.