Use comparison rather than equality checks in for conditions

MSAL

Testing for loop termination using an equality operator (== and !=) is dangerous, because it could set up an infinite loop. Using a relational operator instead makes it harder to accidentally write an infinite loop.

org.openrewrite.staticanalysis.NoEqualityInForCondition
mod run . --recipe=org.openrewrite.staticanalysis.NoEqualityInForCondition

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