compose-lints icon indicating copy to clipboard operation
compose-lints copied to clipboard

ComposeContentEmitterReturningValues incorrectly reports on compose functions with multiple top-level emitters

Open acrab opened this issue 1 year ago • 1 comments

Example code:

@Composable
fun Test(modifier: Modifier = Modifier){
    Text(text = "TextOne")
    Text(text = "TextTwo")
}

Expected result: ComposeMultipleContentEmitters lint rule will trigger

Actual result: Both that rule and ComposeContentEmitterReturningValues trigger, leading to a confusing set of warnings!

image

acrab avatar May 07 '24 16:05 acrab

PR welcome!

ZacSweers avatar May 07 '24 16:05 ZacSweers