it shouldn't be used as a lambda parameter name

Apache 2.0

it is a special identifier that allows you to refer to the current parameter being passed to a lambda expression without explicitly naming the parameter. Lambda expressions are a concise way of writing anonymous functions. Many lambda expressions have only one parameter, when this is true the compiler can determine the parameter type by context. Thus when using it with single parameter lambda expressions, you do not need to declare the type.

org.openrewrite.kotlin.cleanup.ImplicitParameterInLambda
mod run . --recipe=org.openrewrite.kotlin.cleanup.ImplicitParameterInLambda

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