-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdetekt-config.yml
80 lines (71 loc) · 1.64 KB
/
detekt-config.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
# see rules https://github.com/detekt/detekt/blob/master/detekt-core/src/main/resources/default-detekt-config.yml
# and explanations https://detekt.dev/docs/rules/comments
build:
maxIssues: 0
excludeCorrectable: false
comments:
active: true
complexity:
active: true
ComplexCondition:
active: true
threshold: 10
ComplexInterface:
active: true
threshold: 10
includeStaticDeclarations: false
includePrivateDeclarations: false
ignoreOverloaded: false
CognitiveComplexMethod:
active: true
threshold: 15
CyclomaticComplexMethod:
active: true
threshold: 15
ignoreSingleWhenExpression: false
ignoreSimpleWhenEntries: false
ignoreNestingFunctions: false
LargeClass:
active: true
threshold: 600
LongMethod:
active: true
threshold: 60
LongParameterList:
active: true
functionThreshold: 6
constructorThreshold: 7
ignoreDefaultParameters: false
ignoreDataClasses: true
TooManyFunctions:
active: true
thresholdInFiles: 11
thresholdInClasses: 11
thresholdInInterfaces: 11
thresholdInObjects: 11
thresholdInEnums: 11
ignoreDeprecated: false
ignorePrivate: false
ignoreOverridden: false
coroutines:
active: true
exceptions:
active: true
formatting: # seems deprecated and mostly moved to the 'style' section
active: false
naming:
active: true
potential-bugs:
active: true
style:
active: true
MagicNumber:
active: false
MaxLineLength:
active: true
maxLineLength: 180
excludePackageStatements: true
excludeImportStatements: true
excludeCommentStatements: false
ReturnCount:
active: false