forked from cph-cachet/carp.core-kotlin
/
detekt.yml
85 lines (78 loc) · 1.91 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
82
83
84
85
complexity:
LongParameterList:
excludes: ['**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/test/**']
formatting:
Filename:
active: false
MaximumLineLength:
active: false
NoConsecutiveBlankLines:
active: false
NoLineBreakAfterElse:
active: false
NoWildcardImports:
active: false
SpacingAroundCurly:
active: false
SpacingAroundKeyword:
active: false
SpacingAroundParens:
active: false
naming:
MemberNameEqualsClassName:
active: false
performance:
ArrayPrimitive:
active: false
potential-bugs:
EqualsAlwaysReturnsTrueOrFalse:
active: false
UnsafeCallOnNullableType:
active: false
UnnecessarySafeCall:
# TODO: Re-enable once detekt bug is fixed: https://github.com/detekt/detekt/issues/3414
active: false
style:
EqualsNullCall:
active: false
ForbiddenComment:
active: false
LoopWithTooManyJumpStatements:
active: false
MaxLineLength:
active: false
MayBeConst:
active: false
ProtectedMemberInFinalClass:
active: false
ReturnCount:
active: false
ThrowsCount:
active: false
UnnecessaryInheritance:
active: false
UnusedPrivateClass:
active: false
WildcardImport:
# TODO: Consider deactivating this. The advantages of forcing individual types to be imported are limited.
# Namespaces are supposed to be cohesive sets of objects, thus importing them as a group makes sense.
excludes: ''
excludeImports: ['kotlin.reflect.*', 'kotlin.test.*']
verify-implementation:
DataClass:
active: true
annotationClass: "dk.cachet.carp.common.ImplementAsDataClass"
includes: ['**/domain/**']
Immutable:
active: true
annotationClass: "dk.cachet.carp.common.Immutable"
includes: ['**/domain/**']
assumeImmutable: [
'dk.cachet.carp.common.DateTime',
'Json'
]
carp:
CurlyBracesOnSeparateLine:
active: true
SpacingInParentheses:
active: true