Find for (...) { LaunchedEffect(...) { … } } patterns

Proprietary

A LaunchedEffect inside a loop creates a separate coroutine per iteration. That is rarely the intended structure — it is usually a mis-placement of effect logic. Prefer a single LaunchedEffect(keys = arrayOf(...)) { for (...) { … } } or restructure the loop to live inside the effect.

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