Find Modifier.xxx() allocations inside a @Composable body

Proprietary

Each Modifier.padding(...)-style chain allocates a fresh Modifier instance, and a fresh Modifier defeats Compose's structural-equality skip — every recomposition allocates again and forces re-layout. Hoist the modifier into a remember { Modifier… }, accept a Modifier parameter from the caller, or build static modifiers as top-level vals.

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