mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 14:07:05 +05:30
feat(detekt): add Twitter's Compose rules
This commit is contained in:
parent
2685111c70
commit
0f684a3728
3 changed files with 51 additions and 0 deletions
|
@ -712,3 +712,38 @@ style:
|
|||
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
|
||||
excludeImports:
|
||||
- 'java.util.*'
|
||||
|
||||
TwitterCompose:
|
||||
CompositionLocalAllowlist:
|
||||
active: true
|
||||
# allowedCompositionLocals: LocalSomething,LocalSomethingElse
|
||||
CompositionLocalNaming:
|
||||
active: true
|
||||
ContentEmitterReturningValues:
|
||||
active: true
|
||||
# contentEmitters: MyComposable,MyOtherComposable
|
||||
ModifierComposable:
|
||||
active: true
|
||||
ModifierMissing:
|
||||
active: true
|
||||
ModifierReused:
|
||||
active: true
|
||||
ModifierWithoutDefault:
|
||||
active: true
|
||||
MultipleEmitters:
|
||||
active: true
|
||||
# contentEmitters: MyComposable,MyOtherComposable
|
||||
MutableParams:
|
||||
active: true
|
||||
ComposableNaming:
|
||||
active: true
|
||||
ComposableParamOrder:
|
||||
active: true
|
||||
PreviewPublic:
|
||||
active: true
|
||||
RememberMissing:
|
||||
active: true
|
||||
ViewModelForwarding:
|
||||
active: true
|
||||
ViewModelInjection:
|
||||
active: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue