-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
detekt.yml
47 lines (42 loc) · 1.21 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
# 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
CyclomaticComplexMethod:
ignoreSimpleWhenEntries: true
coroutines:
GlobalCoroutineUsage:
active: true
naming:
FunctionNaming:
ignoreAnnotated: ['Composable']
style:
DataClassShouldBeImmutable:
active: true
excludes:
- '**/fluxc/persistence/**'
- '**/fluxc/**/XPostModel.kt'
- '**/fluxc/**/XPostSiteModel.kt'
- '**/fluxc/**/PostFormatModel.kt'
MagicNumber:
ignoreEnums: true
ignoreAnnotated: ['Composable']
ignorePropertyDeclaration: true
SpacingBetweenPackageAndImports:
active: true
UnusedImports:
active: true
UnusedPrivateMember:
ignoreAnnotated: ['Preview']
WildcardImport:
active: true
excludeImports: []