Find string concatenation in log.debug(...)

Proprietary

log.debug("x=" + x) performs the concatenation eagerly. Use kotlin-logging's log.debug { "x=$x" } lambda form or SLF4J's log.debug("x={}", x) placeholder form.

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