Find Surface { OneChild() } patterns

Proprietary

A Surface { OneChild() } wrapper that only sets a tonal elevation or color is rarely the right place to live — the same effect is achievable by passing Modifier.background(...) or Modifier.shadow(...) directly to the child. Audit single-child surfaces for redundancy.

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