You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the modifier-missing-check rule shows an error for things that are technically content emitters but don't emit real content in terms that the content is a different window.
In the following example it does not really make sense to supply a modifier because the composable is really encapsulating it's contents.
The same applies for composables like ModalBottomSheetLayout.
One solution could be be to extend the current rule logic and check if the function has a single direct content emitter which is one of these window-style content emitters.
Tested with 0.0.22
The text was updated successfully, but these errors were encountered:
* Ignore composables that emit content in their own window. Fixes#109
* Lower case the test names
Co-authored-by: Nacho Lopez <nacho@nlopez.io>
* Refactor the sequence function to be tailrec.
Co-authored-by: Nacho Lopez <nacho@nlopez.io>
Currently, the
modifier-missing-check
rule shows an error for things that are technically content emitters but don't emit real content in terms that the content is a different window.In the following example it does not really make sense to supply a modifier because the composable is really encapsulating it's contents.
The same applies for composables like
ModalBottomSheetLayout
.One solution could be be to extend the current rule logic and check if the function has a single direct content emitter which is one of these window-style content emitters.
Tested with 0.0.22
The text was updated successfully, but these errors were encountered: