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

Proprietary

log.trace("x=" + x) performs the concatenation (and the toString on x) before the call — wasted work if trace is disabled. Use the lambda form or SLF4J {} placeholders.

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