Find Compose layout hierarchy smells

Proprietary

Layout containers that exist for no compositional benefit: Box/Column/Row wrapping a single child, and LazyColumn/LazyRow items missing a stable key (which churns composition state on reorder).

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

Recipe list

It runs these recipes, in this order.

  1. Find Box { … } with a single child
  2. Find Column { … } with a single child
  3. Find Row { … } with a single child
  4. Find LazyColumn/LazyRow items(...) calls missing a key = { … } argument