-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.codeclimate.yml
111 lines (106 loc) · 3.17 KB
/
.codeclimate.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
plugins:
sonar-java:
enabled: true
config:
sonar.java.source: "19"
checks:
squid:S1068:
enabled: false # Unused fields. Since we use lombok, the check results so many false positives
squid:S00112:
enabled: false # Use of generic exceptions in method declaration.
squid:S1214:
enabled: false # Use constants in interfaces
squid:S00107:
enabled: false # More than 7 arguments :(
squid:S1186:
enabled: false # Method is empty. So many false positives on java records
java:S1186:
enabled: false # To avoid 'Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation' on record declaration
java:S1172:
enabled: false # To avoid 'Remove these unused method parameters' or record declaration
pmd:
enabled: true
checks:
AtLeastOneConstructor:
enabled: false # Since we use lombok, it's not actual
LawOfDemeter:
enabled: false # We love Java Stream API and other chaining-friendly libraries!
JUnitTestsShouldIncludeAssert:
enabled: false # Spring Boot tests use the underlying statements inside its own
BeanMembersShouldSerialize:
enabled: false # Most of the declared beans in our app should not be serialized
UseProperClassLoader:
enabled: false
CommentDefaultAccessModifier:
enabled: false
SignatureDeclareThrowsException:
enabled: false
ExcessiveImports:
enabled: false
DefaultPackage:
enabled: false # Lombok-associated issue
CallSuperInConstructor:
enabled: false
DataflowAnomalyAnalysis:
enabled: false
OnlyOneReturn:
enabled: false
ConstantsInInterface:
enabled: false
AvoidInstantiatingObjectsInLoops:
enabled: false
AvoidFieldNameMatchingMethodName:
enabled: false
AvoidCatchingGenericException:
enabled: false
GenericsNaming:
enabled: false # why can not we give our generics clear names?
DoNotUseThreads:
enabled: false
config:
file: pmd.xml
checkstyle:
enabled: true
config:
file: checkstyle.xml
checks:
com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck:
enabled: false # We separate static imports from usual ones but this check does not expect that and thus warns
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocParagraphCheck:
enabled: false
com.puppycrawl.tools.checkstyle.checks.javadoc.SummaryJavadocCheck:
enabled: false
checks:
argument-count:
config:
threshold: 100
complex-logic:
config:
threshold: 10
file-lines:
config:
threshold: 550
method-complexity:
config:
threshold: 10
method-count:
config:
threshold: 25
method-lines:
config:
threshold: 55
nested-control-flow:
config:
threshold: 5
return-statements:
config:
threshold: 5
similar-code:
config:
threshold: 50
identical-code:
config:
threshold: 50
exclude_patterns:
- "/web/**"
- "/api/src/test/**"