Find classes with multiple overloaded secondary constructors

Proprietary

Two or more secondary constructors with different arities almost always collapse into a single primary constructor with default arguments. The default-arg form composes with named arguments and @JvmOverloads for cross-language interop.

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