-
Notifications
You must be signed in to change notification settings - Fork 0
/
detekt.yml
96 lines (90 loc) · 2.08 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
# build: https://detekt.dev/docs/introduction/configuration/
build:
maxIssues: 0
# comments: https://detekt.dev/docs/rules/comments/
comments:
active: true
CommentOverPrivateFunction:
active: false
CommentOverPrivateProperty:
active: false
DeprecatedBlockTag:
active: true
EndOfSentenceFormat:
active: false
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
# exceptions: https://detekt.dev/docs/rules/exceptions/
exceptions:
active: true
# formatting: https://detekt.dev/docs/rules/formatting/
formatting:
autoCorrect: true
ClassName:
active: true
IfElseWrapping:
active: true
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: 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: false
ForbiddenComment:
active: true
allowedPatterns: "(TODO|FIXME):\\s\\[[a-zA-Z]{2,}-?\\d{1,}\\]\\s"