Find manual getX() / setX(v) pairs in Kotlin classes

Proprietary

A class that exposes state through hand-rolled getX()/setX(v) is reimplementing what var x: T already provides — Kotlin generates the same accessors on the JVM. Migrate to a property and let the compiler emit the getter/setter pair.

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