Find object declarations with var properties

Proprietary

An object is a singleton — its var properties are shared global mutable state. Concurrent reads/writes race without synchronization, and the value can change in surprising ways across modules.

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