Find "" + x patterns

Proprietary

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