forked from 25huizengek1/ViTune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
detekt.yml
126 lines (120 loc) · 2.9 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
config:
validation: true
warningsAsErrors: false
Compose:
ComposableAnnotationNaming:
active: true
CompositionLocalAllowlist:
active: false
CompositionLocalNaming:
active: true
ContentEmitterReturningValues:
active: true
DefaultsVisibility:
active: true
ModifierClickableOrder:
active: true
ModifierComposable:
active: true
ModifierMissing:
active: true
ignoreAnnotated:
- app.vitune.android.ui.screens.Route
ModifierNaming:
active: true
ModifierNotUsedAtRoot:
active: true
ModifierReused:
active: true
ModifierWithoutDefault:
active: true
MultipleEmitters:
active: true
MutableParams:
active: true
ComposableNaming:
active: true
ComposableParamOrder:
active: true
PreviewAnnotationNaming:
active: true
PreviewPublic:
active: true
RememberMissing:
active: true
RememberContentMissing:
active: true
UnstableCollections:
active: true
ViewModelForwarding:
active: true
ViewModelInjection:
active: true
complexity:
ComplexCondition:
active: false
CyclomaticComplexMethod:
ignoreAnnotated:
- androidx.compose.runtime.Composable
LongParameterList:
ignoreAnnotated:
- androidx.compose.runtime.Composable
ignoreDefaultParameters: true
ignoreDataClasses: true
LongMethod:
active: false
TooManyFunctions:
excludes:
- '**/util/**'
- '**/utils/**'
exceptions:
SwallowedException:
ignoredExceptionTypes:
- ActivityNotFoundException
formatting:
AnnotationOnSeparateLine:
active: true
ignoreAnnotated:
- kotlinx.serialization.Serializable
CommentWrapping:
# Because argument names in comment are a thing: Java API's do not support named arguments
active: false
EnumEntryNameCase:
active: false # Handled by Android Lint
Indentation:
active: false # Idea/Android Studio handles indentation differently
MultiLineIfElse:
active: false
TrailingCommaOnCallSite:
active: true
useTrailingCommaOnCallSite: false
TrailingCommaOnDeclarationSite:
active: true
useTrailingCommaOnDeclarationSite: false
naming:
EnumNaming:
active: false # Handled by Android Lint
FunctionNaming:
ignoreAnnotated:
- androidx.compose.runtime.Composable
MatchingDeclarationName:
active: false
TopLevelPropertyNaming:
constantPattern: '[A-Z][_A-Z0-9]*'
style:
DestructuringDeclarationWithTooManyEntries:
active: false
ForbiddenComment:
active: false
MagicNumber:
active: false
MaxLineLength:
active: false # Overlaps with MaximumLineLength, ktlint preferred because of auto-correct
ModifierOrder:
active: false # Overlaps with ModifierOrdering, ktlint preferred because of auto-correct
NewLineAtEndOfFile:
active: false # Overlaps with FinalNewline, ktlint preferred because of auto-correct
ReturnCount:
active: false
ThrowsCount:
active: false