Find @Autowired var properties (not lateinit)
ProprietaryA @Autowired var x: X property is mutable after wiring — the Spring container sets it once, but any subsequent caller can replace the dependency at runtime. Move the dependency into a primary constructor parameter (val) so it's final end-to-end.
org. openrewrite. kotlin. spring. FindAutowiredOnVar$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindAutowiredOnVar$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.