Skip to content

Commit 4fa894a

Browse files
committed
Revert change in ComposeContentEmitterReturningValues
1 parent 84d5c01 commit 4fa894a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

rules/common/src/main/kotlin/io/nlopez/compose/rules/ComposeContentEmitterReturningValues.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class ComposeContentEmitterReturningValues : ComposeKtVisitor {
2222
// We don't want to analyze composables that are extension functions, as they might be things like
2323
// BoxScope which are legit, and we want to avoid false positives.
2424
.filter { it.hasBlockBody() }
25-
// Same applies to context receivers: we could have a BoxScope/ColumnScope/RowScope and it'd be legit.
26-
// We don't have a way to know for sure, so we'd better avoid the issue altogether.
27-
.filter { it.contextReceivers.isEmpty() }
2825
// We want only methods with a body
2926
.filterNot { it.hasReceiverType }
3027
// Now we want to get the count of direct emitters in them: the composables we know for a fact that output UI

0 commit comments

Comments
 (0)