-
Notifications
You must be signed in to change notification settings - Fork 0
/
detekt.yml
executable file
·57 lines (52 loc) · 1.33 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
build:
maxIssues: 50
complexity:
LargeClass:
threshold: 1200
LongMethod:
threshold: 120
TooManyFunctions:
thresholdInFiles: 30
thresholdInClasses: 30
thresholdInInterfaces: 30
thresholdInObjects: 30
thresholdInEnums: 30
TooGenericExceptionCaught:
active: false
formatting:
android: true
MaximumLineLength:
maxLineLength: 160
naming:
ClassNaming:
classPattern: '^[A-Z]?([A-Z][a-z0-9]+)+[A-Z]?$'
EnumNaming:
enumEntryPattern: '^[A-Z]?([A-Z][a-z0-9]+)+[A-Z]?$'
ObjectPropertyNaming:
constantPattern: '^[a-z]+[0-9]*([A-Z][a-z0-9]+)*[A-Z]?$'
propertyPattern: '^[a-z]+[0-9]*([A-Z][a-z0-9]+)*[A-Z]?$'
privatePropertyPattern: '^_?[a-z]+[0-9]*([A-Z][a-z0-9]+)*[A-Z]?$'
TopLevelPropertyNaming:
constantPattern: '^[a-z]+[0-9]*([A-Z][a-z0-9]+)*[A-Z]?$'
propertyPattern: '^[a-z]+[0-9]*([A-Z][a-z0-9]+)*[A-Z]?$'
privatePropertyPattern: '^_?[a-z]+[0-9]*([A-Z][a-z0-9]+)*[A-Z]?$'
style:
MaxLineLength:
maxLineLength: 160
NewLineAtEndOfFile:
active: false
WildcardImport:
active: false
retekt:
InterfaceNaming:
active: true
TypeParameterNaming:
active: true
SuspendFunction:
active: true
ignorePrivateFunction: true
includes: '**/suspends/**'
UnitFunction:
active: true
ignorePrivateFunction: true
includes: '**/units/**'