Find classes that could be data class
ProprietaryA class whose only members are val constructor parameters — no methods, no init, no extra properties — is the canonical shape data class exists for. Adding data synthesizes toString/equals/hashCode/copy/componentN without changing any other semantics.
org. openrewrite. kotlin. bestpractices. FindClassWithoutDataAnnotation$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. bestpractices. FindClassWithoutDataAnnotation$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.