Boolean checks should not be inverted
MSALEnsures that boolean checks are not unnecessarily inverted. Also fixes double negative boolean expressions. Negating a comparison and then inverting it adds cognitive overhead; using the direct operator (e.g., >= instead of !(... < ...)) is clearer and easier to reason about. Ordered floating-point comparisons retain their negation to preserve NaN behavior.
org. openrewrite. staticanalysis. BooleanChecksNotInvertedmod run . --recipe= org. openrewrite. staticanalysis. BooleanChecksNotInvertedInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.