Find public lateinit var declarations

Proprietary

lateinit var defers initialization but exposes a mutable, possibly-uninitialized property. As public API, every caller can both read (and potentially trigger UninitializedPropertyAccessException) and write the field. Flag for review of encapsulation.

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