Find hiltViewModel<X>() calls inside @Composable

Proprietary

hiltViewModel<MyViewModel>() inside a @Composable couples the screen-level dependency injection to that composable. That is the recommended pattern at navigation entry points, but flagged for review when the same ViewModel is injected from multiple composables (you'll get distinct instances per nav graph entry).

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