Find "" + x patterns
ProprietaryPrepending an empty "" is a Java idiom for forcing a toString() conversion. In Kotlin write x.toString() or the template "$x" for the same effect with explicit intent.
org. openrewrite. kotlin. bestpractices. FindStringConcatWithEmptyLeft$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindStringConcatWithEmptyLeft$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.