-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
detekt.yml
54 lines (52 loc) · 1.56 KB
/
detekt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# https://github.com/detekt/detekt/blob/main/detekt-core/src/main/resources/default-detekt-config.yml
build:
maxIssues: 0
naming:
active: false
FunctionNaming:
active: true
functionPattern: '[a-zA-Z][a-zA-Z0-9]*'
TopLevelPropertyNaming:
active: true
constantPattern: '[A-Z][A-Za-z0-9]*'
TwitterCompose:
CompositionLocalAllowlist:
active: false
# allowedCompositionLocals: LocalSomething,LocalSomethingElse
CompositionLocalNaming:
active: true
ContentEmitterReturningValues:
active: true
# contentEmitters: MyComposable,MyOtherComposable
ModifierComposable:
active: true
ModifierMissing:
active: false
ModifierReused:
active: true
ModifierWithoutDefault:
active: false
MultipleEmitters:
active: true
# contentEmitters: MyComposable,MyOtherComposable
MutableParams:
active: true
ComposableNaming:
active: false # TODO active if this fix: https://github.com/twitter/compose-rules/issues/107
allowedComposableFunctionNames: .*Presenter
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: false # TODO active later
ViewModelForwarding:
active: false
ViewModelInjection:
active: false