Find classes with manual toString/equals/hashCode overrides

Proprietary

A class that overrides all three of toString, equals, and hashCode over its own fields is the canonical shape data class exists for. Migrate to data class C(val a: A, …) to delete the boilerplate and gain copy() plus componentN() for free.

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