-
Notifications
You must be signed in to change notification settings - Fork 27
/
detekt-formatting.yaml
268 lines (268 loc) · 5.67 KB
/
detekt-formatting.yaml
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
formatting:
active: true
android: false
autoCorrect: true
AnnotationOnSeparateLine:
active: true
autoCorrect: true
indentSize: 4
AnnotationSpacing:
active: true
autoCorrect: true
ArgumentListWrapping:
active: true
autoCorrect: true
indentSize: 4
maxLineLength: 140
BlockCommentInitialStarAlignment:
active: true
autoCorrect: true
ChainWrapping:
active: true
autoCorrect: true
indentSize: 4
ClassName:
active: false
CommentSpacing:
active: true
autoCorrect: true
CommentWrapping:
active: true
autoCorrect: true
indentSize: 4
ContextReceiverMapping:
active: false
autoCorrect: true
maxLineLength: 140
indentSize: 4
DiscouragedCommentLocation:
active: false
autoCorrect: true
EnumEntryNameCase:
active: true
autoCorrect: true
EnumWrapping:
active: false
autoCorrect: true
indentSize: 4
Filename:
active: true
FinalNewline:
active: true
autoCorrect: true
insertFinalNewLine: true
FunKeywordSpacing:
active: true
autoCorrect: true
FunctionName:
active: false
FunctionReturnTypeSpacing:
active: true
autoCorrect: true
maxLineLength: 140
FunctionSignature:
active: false
autoCorrect: true
forceMultilineWhenParameterCountGreaterOrEqualThan: 2147483647
functionBodyExpressionWrapping: 'default'
maxLineLength: 140
indentSize: 4
FunctionStartOfBodySpacing:
active: true
autoCorrect: true
FunctionTypeReferenceSpacing:
active: true
autoCorrect: true
IfElseBracing:
active: false
autoCorrect: true
indentSize: 4
IfElseWrapping:
active: false
autoCorrect: true
indentSize: 4
ImportOrdering:
active: true
autoCorrect: true
layout: '*,java.**,javax.**,kotlin.**,^'
Indentation:
active: true
autoCorrect: true
indentSize: 4
KdocWrapping:
active: true
autoCorrect: true
indentSize: 4
MaximumLineLength:
active: true
maxLineLength: 140
ignoreBackTickedIdentifier: false
ModifierListSpacing:
active: true
autoCorrect: true
ModifierOrdering:
active: true
autoCorrect: true
MultiLineIfElse:
active: true
autoCorrect: true
indentSize: 4
MultilineExpressionWrapping:
active: false
autoCorrect: true
indentSize: 4
NoBlankLineBeforeRbrace:
active: true
autoCorrect: true
NoBlankLineInList:
active: false
autoCorrect: true
NoBlankLinesInChainedMethodCalls:
active: true
autoCorrect: true
NoConsecutiveBlankLines:
active: true
autoCorrect: true
NoConsecutiveComments:
active: false
NoEmptyClassBody:
active: true
autoCorrect: true
NoEmptyFirstLineInClassBody:
active: false
autoCorrect: true
indentSize: 4
NoEmptyFirstLineInMethodBlock:
active: true
autoCorrect: true
NoLineBreakAfterElse:
active: true
autoCorrect: true
NoLineBreakBeforeAssignment:
active: true
autoCorrect: true
NoMultipleSpaces:
active: true
autoCorrect: true
NoSemicolons:
active: true
autoCorrect: true
NoSingleLineBlockComment:
active: false
autoCorrect: true
indentSize: 4
NoTrailingSpaces:
active: true
autoCorrect: true
NoUnitReturn:
active: true
autoCorrect: true
NoUnusedImports:
active: true
autoCorrect: true
NoWildcardImports:
active: true
packagesToUseImportOnDemandProperty: 'java.util.*,kotlinx.android.synthetic.**'
NullableTypeSpacing:
active: true
autoCorrect: true
PackageName:
active: true
autoCorrect: true
ParameterListSpacing:
active: false
autoCorrect: true
ParameterListWrapping:
active: true
autoCorrect: true
maxLineLength: 140
indentSize: 4
ParameterWrapping:
active: true
autoCorrect: true
indentSize: 4
maxLineLength: 140
PropertyName:
active: false
PropertyWrapping:
active: true
autoCorrect: true
indentSize: 4
maxLineLength: 140
SpacingAroundAngleBrackets:
active: true
autoCorrect: true
SpacingAroundColon:
active: true
autoCorrect: true
SpacingAroundComma:
active: true
autoCorrect: true
SpacingAroundCurly:
active: true
autoCorrect: true
SpacingAroundDot:
active: true
autoCorrect: true
SpacingAroundDoubleColon:
active: true
autoCorrect: true
SpacingAroundKeyword:
active: true
autoCorrect: true
SpacingAroundOperators:
active: true
autoCorrect: true
SpacingAroundParens:
active: true
autoCorrect: true
SpacingAroundRangeOperator:
active: true
autoCorrect: true
SpacingAroundUnaryOperator:
active: true
autoCorrect: true
SpacingBetweenDeclarationsWithAnnotations:
active: true
autoCorrect: true
SpacingBetweenDeclarationsWithComments:
active: true
autoCorrect: true
SpacingBetweenFunctionNameAndOpeningParenthesis:
active: true
autoCorrect: true
StringTemplate:
active: true
autoCorrect: true
StringTemplateIndent:
active: false
autoCorrect: true
indentSize: 4
TrailingCommaOnCallSite:
active: false
autoCorrect: true
useTrailingCommaOnCallSite: true
TrailingCommaOnDeclarationSite:
active: false
autoCorrect: true
useTrailingCommaOnDeclarationSite: true
TryCatchFinallySpacing:
active: false
autoCorrect: true
indentSize: 4
TypeArgumentListSpacing:
active: false
autoCorrect: true
indentSize: 4
TypeParameterListSpacing:
active: false
autoCorrect: true
indentSize: 4
UnnecessaryParenthesesBeforeTrailingLambda:
active: true
autoCorrect: true
Wrapping:
active: true
autoCorrect: true
indentSize: 4
maxLineLength: 140