Find string-allocation smells

Proprietary

Flags s = s + "…"-inside-loop patterns that allocate a fresh String on every iteration. The StringBuilder.length-vs-size rewrite lives in the autofix bundle.

org.openrewrite.kotlin.performance.FindStringConcatSmells$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.performance.FindStringConcatSmells$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.

Recipe list

It runs these recipes, in this order.

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