Find s = s + "..." string concatenation inside loops

Proprietary

Repeated 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$KtRecipe
mod 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.