/
detekt.yml
40 lines (35 loc) · 1018 Bytes
/
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
# Default Config: https://github.com/detekt/detekt/blob/main/detekt-core/src/main/resources/default-detekt-config.yml
# Formatting Config: https://github.com/detekt/detekt/blob/main/detekt-formatting/src/main/resources/config/config.yml
# Compose Config: https://detekt.dev/docs/introduction/compose/
config:
warningsAsErrors: true
complexity:
LongParameterList:
ignoreDefaultParameters: true
ignoreAnnotated: ['Inject', 'Composable']
LongMethod:
ignoreAnnotated: ['Composable']
TooManyFunctions:
active: false
coroutines:
GlobalCoroutineUsage:
active: true
naming:
FunctionNaming:
ignoreAnnotated: ['Composable']
style:
DataClassShouldBeImmutable:
active: true
MagicNumber:
ignoreEnums: true
ignoreAnnotated: ['Composable']
ignorePropertyDeclaration: true
SpacingBetweenPackageAndImports:
active: true
UnusedImports:
active: true
UnusedPrivateMember:
ignoreAnnotated: ['Preview']
WildcardImport:
active: true
excludeImports: []