-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdetekt.yml
54 lines (49 loc) · 1.3 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
build:
maxIssues: 5000
complexity:
LargeClass:
threshold: 1200
LongMethod:
threshold: 120
TooManyFunctions:
thresholdInFiles: 30
thresholdInClasses: 30
thresholdInInterfaces: 30
thresholdInObjects: 30
thresholdInEnums: 30
exceptions:
TooGenericExceptionCaught:
active: false
formatting:
android: true
MaximumLineLength:
maxLineLength: 160
FinalNewline:
active: false
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
interfacePattern: '^I[A-Z]?([A-Z][a-z0-9]+)+[A-Z]?$'
TypeParameterNaming:
active: true
typeParameterPattern: '^T[A-Z]?([A-Z][a-z0-9]+)+[A-Z]?$'