Find Card { OneChild() } patterns

Proprietary

A Card { OneChild() } allocates a layout node and an elevation surface for exactly one composable. If the child already styles itself (Modifier.background/Modifier.shadow), the Card is decorative duplication — pull the styling into the child's Modifier chain.

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