mrmans0n / compose-rules

Lint rules for ktlint/detekt aimed to contribute to a healthier usage of Compose. Actively maintained and evolved fork of the Twitter Compose rules.
https://mrmans0n.github.io/compose-rules
Other
550 stars 21 forks source link

Add denylist for content emitters #167

Closed mrmans0n closed 9 months ago

mrmans0n commented 9 months ago

Adds the ability to configure composables that probably emit content that we don't want to count towards the count for emissions. This is useful, for example, for composables that wrap stuff that will render in another window (like a Dialog or a Modal), which they do indeed emit content but we might not want to take it into account because it's not a mistake that is used at the same level as other stuff (e.g. a Scaffold composable).

Closes #166.

mrmans0n commented 9 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.