Find android.content.Context parameters on @Composable functions

Proprietary

Passing a Context into a composable couples it to the activity instance and makes the function harder to preview/test. Use LocalContext.current inside the composable instead — it works through the composition tree and is preview-safe.

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