Find abstract class declarations without abstract members

Proprietary

An abstract class with no abstract members and no state offers nothing over interface — and interface composes better (multiple inheritance, no constructor coupling). If the class is being used as a marker, consider sealed interface for stronger exhaustiveness checks.

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