Find top-level run { … } whose body never uses this
ProprietaryTop-level run { … } (no receiver) is meaningful only when the block uses the implicit this or executes multiple statements as an expression. If the body neither references this nor depends on the scoping it provides, the wrapper just adds an unnecessary lambda allocation.
org. openrewrite. kotlin. bestpractices. FindStandaloneRunWithoutThis$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindStandaloneRunWithoutThis$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.