twitter / compose-rules

Static checks to aid with a healthy adoption of Compose
https://twitter.github.io/compose-rules
Other
1.37k stars 93 forks source link

Add ComposeCompositionLocalAllowlist rule #80

Closed mrmans0n closed 2 years ago

mrmans0n commented 2 years ago

Adds a rule to disallow the introduction of new CompositionLocals, and adds a allowedCompositionLocals (Detekt) and allowed_composition_locals (ktlint) config entries to be able to provide an allowed list of them (e.g. if they are necessary for some infra or other valid cases like that, don't go abusing this 😅 ).