-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathdetekt.yml
More file actions
69 lines (65 loc) · 1.71 KB
/
detekt.yml
File metadata and controls
69 lines (65 loc) · 1.71 KB
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
build:
maxIssues: 50
excludeCorrectable: false
weights:
# complexity: 2
# LongParameterList: 1
# style: 1
# comments: 1
config:
validation: true
warningsAsErrors: false
checkExhaustiveness: false
# when writing own rules with new properties, exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
excludes: ''
naming:
active: true
MatchingDeclarationName:
active: false
FunctionNaming:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/jsTest/**', '**/iosTest/**']
functionPattern: '[a-z][a-zA-Z0-9]*'
excludeClassPattern: '$^'
ignoreAnnotated:
- Composable
- Previe
TopLevelPropertyNaming:
constantPattern: '[A-Za-z][_A-Za-z0-9]*'
style:
active: true
UnusedPrivateProperty:
active: true
allowedNames: '_|ignored|expected|serialVersionUID|commonMain|iosMain|androidMain|commonTest|iosTest|androidTest|debug|enterprise|release'
UnusedPrivateMember:
active: true
ignoreAnnotated:
- Composable
- Preview
MaxLineLength:
active: true
maxLineLength: 140 # Keep aligned with .editorconfig file to prevent false positives
MagicNumber:
active: true
ignoreAnnotated:
- Preview
DestructuringDeclarationWithTooManyEntries:
active: true
ignoreAnnotated:
- Composable
complexity:
LongParameterList:
active: true
ignoreAnnotated:
- Composable
TooManyFunctions:
active: true
thresholdInInterfaces: 25
thresholdInClasses: 25
thresholdInFiles: 20
thresholdInObjects: 20
LongMethod:
active: true
ignoreAnnotated:
- Composable
- Preview