I'd like to enforce maximum nesting per @Composable function to force dedicated @Composable sub functions for better readibility
I.e for this to be banned (obviously nonsensical, but the point is amount of nesting per named @Composable)
@Composable
fun Foo() {
Box {
Box {
Box {
Box {
Box {
Text("")
}
}
}
}
}
}
and therefore encouraging
Composable
fun Foo() {
Box {
Box {
Box {
Bar()
}
}
}
}
@Composable
private fun Bar() {
Box {
Box {
Text("")
}
}
}
I'd like to enforce maximum nesting per
@Composablefunction to force dedicated@Composablesub functions for better readibilityI.e for this to be banned (obviously nonsensical, but the point is amount of nesting per named
@Composable)and therefore encouraging