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
525 stars 19 forks source link

Add ContentTrailingLambda rule to ensure content slot is trailing #253

Closed mrmans0n closed 2 months ago

mrmans0n commented 2 months ago

Adds a new rule so that the content composable is the trailing lambda. This one is less restrictive than the one in the official lints (where anything with "content" in it could be asked to be trailing, even if things like titleContent might not make much sense).