Use comparison rather than equality checks in for conditions
MSALTesting 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. NoEqualityInForConditionmod run . --recipe= org. openrewrite. staticanalysis. NoEqualityInForConditionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.