Find String.format calls inside loops
ProprietaryString.format(...) parses the format string on every call. Inside a loop this re-parses the same template every iteration — prefer string templates ("${x}") or extract the Formatter if you must use %-style specifiers.
org. openrewrite. kotlin. performance. FindStringFormatInLoops$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. performance. FindStringFormatInLoops$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.