Simplify for loop boundary comparisons
MSALReplace <= with < in for loop conditions by adjusting the comparison operands. For example, i <= n - 1 simplifies to i < n, and i <= n becomes i < n + 1.
org. openrewrite. staticanalysis. SimplifyForLoopBoundaryComparisonmod run . --recipe= org. openrewrite. staticanalysis. SimplifyForLoopBoundaryComparisonInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.