Find x.run { ... } that doesn't use the receiver

Proprietary

run { } is meaningful when the lambda references this; otherwise x.let { … } (binding via it) or even no scope function at all is clearer. The runtime cost is identical — the value is purely readability.

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