-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetekt.yml
More file actions
122 lines (110 loc) · 2.26 KB
/
Copy pathdetekt.yml
File metadata and controls
122 lines (110 loc) · 2.26 KB
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
build:
maxIssues: 0
excludeCorrectable: false
weights:
complexity: 2
LongParameterList: 1
style: 1
comments: 1
config:
validation: true
warningsAsErrors: false
processors:
active: true
console-reports:
active: true
output-reports:
active: true
exclude:
- 'HtmlOutputReport'
complexity:
active: true
ComplexMethod:
active: true
threshold: 15
LongMethod:
active: true
threshold: 60
LongParameterList:
active: true
functionThreshold: 6
constructorThreshold: 7
TooManyFunctions:
active: true
thresholdInFiles: 15
thresholdInClasses: 15
thresholdInInterfaces: 11
thresholdInObjects: 11
thresholdInEnums: 11
empty-blocks:
active: true
exceptions:
active: true
NotImplementedDeclaration:
active: false
TooGenericExceptionCaught:
active: true
exceptionNames:
- ArrayIndexOutOfBoundsException
- Error
- Exception
- IllegalMonitorStateException
- IndexOutOfBoundsException
- NullPointerException
- RuntimeException
- Throwable
formatting:
active: true
android: false
autoCorrect: true
naming:
active: true
ClassNaming:
active: true
classPattern: '[A-Z][a-zA-Z0-9]*'
FunctionNaming:
active: true
functionPattern: '[a-z][a-zA-Z0-9]*'
excludeClassPattern: '$^'
VariableNaming:
active: true
variablePattern: '[a-z][a-zA-Z0-9]*'
performance:
active: true
potential-bugs:
active: true
style:
active: true
MagicNumber:
active: true
ignoreNumbers:
- '-1'
- '0'
- '1'
- '2'
- '7'
- '11'
- '12'
ignoreHashCodeFunction: true
ignorePropertyDeclaration: true
ignoreLocalVariableDeclaration: false
ignoreConstantDeclaration: true
ignoreCompanionObjectPropertyDeclaration: true
ignoreAnnotation: true
ignoreNamedArgument: true
ignoreEnums: true
ignoreRanges: true
ignoreExtensionFunctions: true
MaxLineLength:
active: true
maxLineLength: 120
excludePackageStatements: true
excludeImportStatements: true
excludeCommentStatements: false
ReturnCount:
active: true
max: 3
excludedFunctions: "equals"
excludeLabeled: false
excludeReturnFromLambda: true
excludeGuardClauses: false