Find eager string interpolation in log.debug(...)
Proprietarylog.debug("x=$x") evaluates the template (including any toString() work on x) before the call even reaches the logger — if debug is disabled, the work is wasted. With kotlin-logging use log.debug { "x=$x" }; with SLF4J use the parameterized form log.debug("x={}", x).
org. openrewrite. kotlin. logging. FindEagerStringInterpolationInLogDebug$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindEagerStringInterpolationInLogDebug$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.