-
Notifications
You must be signed in to change notification settings - Fork 0
/
detekt.yml
119 lines (112 loc) · 2.5 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
# build: https://detekt.dev/docs/introduction/configuration/
build:
maxIssues: 0
# comments: https://detekt.dev/docs/rules/comments/
comments:
active: true
CommentOverPrivateFunction:
active: true
CommentOverPrivateProperty:
active: true
DeprecatedBlockTag:
active: true
EndOfSentenceFormat:
active: true
KDocReferencesNonPublicProperty:
active: true
OutdatedDocumentation:
active: true
UndocumentedPublicClass:
active: true
UndocumentedPublicFunction:
active: true
# complexity: https://detekt.dev/docs/rules/complexity/
complexity:
active: true
LongParameterList:
active: true
constructorThreshold: 10
functionThreshold: 8
NestedScopeFunctions:
active: true
TooManyFunctions:
active: false
NestedBlockDepth:
active: false
CyclomaticComplexMethod:
threshold: 20
active: true
# exceptions: https://detekt.dev/docs/rules/exceptions/
exceptions:
active: true
SwallowedException:
active: false
# formatting: https://detekt.dev/docs/rules/formatting/
formatting:
autoCorrect: true
ClassName:
active: true
IfElseWrapping:
active: false
MultiLineIfElse:
active: false
Indentation:
active: true
indentSize: 2
KDocFormatting:
active: true
enableParamNameAlignment: true
enableParameterListWrapping: true
MaxLineLength:
active: true
maxLineLength: 100
NewLineAtEndOfFile:
active: true
NoConsecutiveBlankLines:
active: true
NoEmptyClassBody:
active: true
SpacingAroundColon:
active: true
SpacingAroundComma:
active: true
SpacingAroundCurly:
active: true
includeSpacesBeforeBrace: true
SpacingAroundKeywords:
active: true
SpacingAroundOperators:
active: true
SpacingAroundParens:
active: true
includeSpacesBeforeParenthesis: true
NoWildcardImports:
active: true
ParameterListWrapping:
active: true
Wrapping:
active: true
ChainWrapping:
active: true
# performance: https://detekt.dev/docs/rules/performance/
performance:
SpreadOperator:
active: false
# naming: https://detekt.dev/docs/rules/naming/
naming:
BooleanPropertyNaming:
active: true
# style: https://detekt.dev/docs/rules/style/
style:
active: true
MagicNumber:
active: true
ignoreNumbers: [ '-2', '-1', '0', '0.5', '1', '2', '3', '31', '100', '1000' ]
WildcardImport:
active: true
ForbiddenComment:
active: true
allowedPatterns: "(TODO|FIXME):\\s\\[[a-zA-Z]{2,}-?\\d{1,}\\]\\s"
ReturnCount:
max: 3
active: true