Add twitter rules for Compose
This commit is contained in:
parent
608b99891f
commit
4baaf8cbfe
2 changed files with 47 additions and 0 deletions
|
|
@ -191,4 +191,5 @@ dependencies {
|
||||||
|
|
||||||
implementation(libs.showkase)
|
implementation(libs.showkase)
|
||||||
ksp(libs.showkase.processor)
|
ksp(libs.showkase.processor)
|
||||||
|
detektPlugins("com.twitter.compose.rules:detekt:0.0.26")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,3 +101,49 @@ comments:
|
||||||
active: false
|
active: false
|
||||||
UndocumentedPublicProperty:
|
UndocumentedPublicProperty:
|
||||||
active: false
|
active: false
|
||||||
|
|
||||||
|
TwitterCompose:
|
||||||
|
CompositionLocalAllowlist:
|
||||||
|
active: true
|
||||||
|
# You can optionally define a list of CompositionLocals that are allowed here
|
||||||
|
# allowedCompositionLocals: LocalSomething,LocalSomethingElse
|
||||||
|
CompositionLocalNaming:
|
||||||
|
active: true
|
||||||
|
ContentEmitterReturningValues:
|
||||||
|
active: true
|
||||||
|
# You can optionally add your own composables here
|
||||||
|
# contentEmitters: MyComposable,MyOtherComposable
|
||||||
|
ModifierComposable:
|
||||||
|
active: true
|
||||||
|
ModifierMissing:
|
||||||
|
active: true
|
||||||
|
ModifierReused:
|
||||||
|
active: true
|
||||||
|
ModifierWithoutDefault:
|
||||||
|
active: true
|
||||||
|
MultipleEmitters:
|
||||||
|
active: true
|
||||||
|
# You can optionally add your own composables here
|
||||||
|
# contentEmitters: MyComposable,MyOtherComposable
|
||||||
|
MutableParams:
|
||||||
|
active: true
|
||||||
|
ComposableNaming:
|
||||||
|
active: true
|
||||||
|
# You can optionally disable the checks in this rule for regex matches against the composable name (e.g. molecule presenters)
|
||||||
|
# allowedComposableFunctionNames: .*Presenter,.*MoleculePresenter
|
||||||
|
ComposableParamOrder:
|
||||||
|
active: true
|
||||||
|
PreviewNaming:
|
||||||
|
active: true
|
||||||
|
PreviewPublic:
|
||||||
|
active: true
|
||||||
|
# You can optionally disable that only previews with @PreviewParameter are flagged
|
||||||
|
# previewPublicOnlyIfParams: false
|
||||||
|
RememberMissing:
|
||||||
|
active: true
|
||||||
|
UnstableCollections:
|
||||||
|
active: true
|
||||||
|
ViewModelForwarding:
|
||||||
|
active: true
|
||||||
|
ViewModelInjection:
|
||||||
|
active: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue