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 ignoreAnnotated to ModifierMissing rule #318

Closed lebeshev closed 1 week ago

lebeshev commented 1 month ago

Use case

We use compose destinations library for navigation. With this library you annotate screen level composables with @Destination and do not invoke your screen level composables manually. So it does not make sense to add modifier to these composables. But it seems like ModifierMissing rule does not support ignoreAnnotated.

mrmans0n commented 2 weeks ago

Yep, that makes sense