-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdetekt-base.yml
37 lines (37 loc) · 967 Bytes
/
detekt-base.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
complexity:
ComplexMethod:
ignoreSimpleWhenEntries: true
exceptions:
TooGenericExceptionCaught:
exceptionNames:
# default minus Exception
- ArrayIndexOutOfBoundsException
- Error
- IllegalMonitorStateException
- NullPointerException
- IndexOutOfBoundsException
- RuntimeException
- Throwable
naming:
ConstructorParameterNaming:
privateParameterPattern: "[_a-z][A-Za-z0-9]*"
MatchingDeclarationName:
excludes:
"**/*Annotations.kt,**/*Delegates.kt,**/*Exceptions.kt,**/*Extensions.kt,**/*Functions.kt,**/Misc.kt"
TopLevelPropertyNaming:
constantPattern: "[A-Z][A-Za-z0-9]*"
propertyPattern: "[A-Za-z][A-Za-z0-9]*"
privatePropertyPattern: "_?[A-Za-z][A-Za-z0-9]*"
performance:
SpreadOperator:
active: false
style:
MagicNumber:
active: false
MaxLineLength:
# handled by ktlint
active: false
ReturnCount:
max: 3
UseIfInsteadOfWhen:
active: false