-
Notifications
You must be signed in to change notification settings - Fork 30
/
detekt.yml
54 lines (48 loc) · 973 Bytes
/
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
---
#
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
style:
ForbiddenComment:
active: false
LoopWithTooManyJumpStatements:
maxJumpCount: 4
MaxLineLength:
maxLineLength: 200
ThrowsCount:
active: true
max: 10
ReturnCount:
active: true
max: 10
UtilityClassWithPublicConstructor:
active: false
empty-blocks:
EmptyCatchBlock:
excludes: ['**/test/**']
exceptions:
SwallowedException:
excludes: ['**/test/**']
ignoredExceptionTypes:
- 'ZoneRulesException'
- 'DateTimeException'
complexity:
LargeClass:
excludes: ['**/test/**']
LongMethod:
excludes: ['**/test/**']
threshold: 110
LongParameterList:
excludes: ['**/test/**']
constructorThreshold: 8
ComplexMethod:
threshold: 27
NestedBlockDepth:
threshold: 10
naming:
ObjectPropertyNaming:
constantPattern: '[_A-Za-z][_A-Za-z0-9]*'
performance:
SpreadOperator:
active: false