Find forEach { println(it) } patterns

Proprietary

forEach { println(it) } is the loop-form for (x in xs) println(x) — verify whether the print is debug-only. If it is intended output, consider joinToString("\n").let(::println) to write the whole thing in one syscall.

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