Find Modifier.weight(...) calls outside a Row/Column scope

Proprietary

Modifier.weight(weight) is an extension on RowScope/ColumnScope — calling it elsewhere is a compile error in well-typed code, but stub builds and intrinsic-measurement hacks let mis-scoped calls slip through. Flag any weight(...) on a Modifier chain whose nearest enclosing scoped builder isn't a Row or Column.

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