Simplify for loop boundary comparisons

MSAL

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

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