Find functions with explicit : Unit return type

Proprietary

Kotlin functions that don't declare a return type return Unit by convention. Writing : Unit explicitly adds noise — drop it unless the explicit form aids a generated API surface (e.g. @JvmOverloads).

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