Find Box { … } with a single child
ProprietaryA Box { OneChild() } adds a layout node and a measurement pass for no compositional benefit — the child could be invoked directly with the same Modifier. Either pull the modifier onto the child or use the explicit Box placement APIs if alignment is doing real work.
org. openrewrite. kotlin. compose. FindBoxWithSingleChild$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindBoxWithSingleChild$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.