Find Surface { OneChild() } patterns
ProprietaryA 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$KtRecipemod 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.