Find apply { } blocks that perform no mutation
Proprietaryapply { } is for configuring the receiver and returning it. If the block has no assignments or property writes, also { } (which exposes the receiver as it and runs for side effects) or just inlining the call expresses the intent more clearly.
org. openrewrite. kotlin. idiom. FindApplyWithoutMutation$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindApplyWithoutMutation$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.