Move a closure which is the last argument of a method invocation out of parentheses

Apache 2.0

Groovy allows a shorthand syntax that allows a closure to be placed outside of parentheses.

org.openrewrite.groovy.format.OmitParenthesesForLastArgumentLambda
mod run . --recipe=org.openrewrite.groovy.format.OmitParenthesesForLastArgumentLambda

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.