Find empty companion object declarations

Proprietary

A companion object {} with no members generates a synthetic Companion holder class that's never used. Remove it — Kotlin doesn't require an empty companion object for any feature.

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