Boolean checks should not be inverted

MSAL

Ensures 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.BooleanChecksNotInverted
mod run . --recipe=org.openrewrite.staticanalysis.BooleanChecksNotInverted

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