Find any lateinit var injected field (@Autowired / @Inject / @Value)

Proprietary

Any property wired via lateinit var + injection annotation pattern is a candidate for constructor injection. This recipe catches the union of @Autowired, @Inject, and @Value lateinit-var declarations.

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