-
Notifications
You must be signed in to change notification settings - Fork 58
/
detekt.yml
81 lines (75 loc) · 1.72 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
build:
maxIssues: 10
comments:
UndocumentedPublicClass:
active: true
searchInNestedClass: false
searchInInnerClass: false
searchInInnerObject: false
searchInInnerInterface: false
excludes: [ '**/test/**' ]
UndocumentedPublicFunction:
active: false
UndocumentedPublicProperty:
active: false
complexity:
StringLiteralDuplication:
active: true
threshold: 5
ignoreAnnotation: true
excludeStringsWithLessThan5Characters: true
ignoreStringsRegex: '$^'
ComplexInterface:
active: true
threshold: 10
includeStaticDeclarations: false
includePrivateDeclarations: false
ComplexMethod:
active: true
ignoreSingleWhenExpression: true
LargeClass:
active: true
MethodOverloading:
active: true
exceptions:
NotImplementedDeclaration:
active: true
InstanceOfCheckForException:
active: true
RethrowCaughtException:
active: true
ReturnFromFinally:
active: true
ThrowingExceptionFromFinally:
active: true
ThrowingExceptionsWithoutMessageOrCause:
active: true
ThrowingNewInstanceOfSameException:
active: true
potential-bugs:
UnsafeCast:
active: true
UselessPostfixExpression:
active: true
style:
CollapsibleIfStatements:
active: true
MagicNumber:
ignorePropertyDeclaration: true
ignoreAnnotation: true
ignoreEnums: true
ignoreNumbers: [ '-1', '0', '1', '2', '100', '1000' ]
NestedClassesVisibility:
active: true
RedundantVisibilityModifierRule:
active: true
ReturnCount:
active: true
excludeGuardClauses: true
SpacingBetweenPackageAndImports:
active: true
UnusedPrivateMember:
active: true
allowedNames: '(_|ignored|expected)'
UseCheckOrError:
active: true