Find s = s + "..." string concatenation inside loops
ProprietaryRepeated String concatenation inside a loop allocates a new String on every iteration — each + produces a fresh StringBuilder. Prefer building once with StringBuilder (or buildString { … }).
org. openrewrite. kotlin. performance. FindStringPlusInLoop$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. performance. FindStringPlusInLoop$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.