-
Notifications
You must be signed in to change notification settings - Fork 13
/
.codeclimate.yml
74 lines (71 loc) · 1.62 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
version: "2"
checks:
argument-count:
enabled: true
config:
threshold: 7
complex-logic:
enabled: true
config:
threshold: 4
file-lines:
enabled: true
config:
threshold: 500
method-complexity:
enabled: true
config:
threshold: 25
method-count:
enabled: true
config:
threshold: 50
method-lines:
enabled: true
config:
threshold: 150
nested-control-flow:
enabled: true
config:
threshold: 4
return-statements:
enabled: false
similar-code:
enabled: true
config:
threshold: # language-specific defaults. an override will affect all languages.
identical-code:
enabled: true
config:
threshold: # language-specific defaults. an override will affect all languages.
plugins:
# there are 16,000+ errors/warnings when checkstyle is enabled
checkstyle:
enabled: false
config:
file: "common-utils/src/main/resources/checkstyle/checkstyle.xml"
sonar-java:
enabled: true
checks:
# Disable enforcement of rule that enum values must be all caps, since we have many that don't adhere
java:S115:
enabled: false
pmd:
enabled: true
# duplication plugin affects similar-code and identical-code
duplication:
enabled: true
config:
count_threshold: 5
languages:
java:
mass_threshold: 50 # default threshold is 40
exclude_patterns:
- "static/js/lib/"
- "static/js/admin/performance_visualizations/assets/"
- "static/js/admin/lib/"
- "static/js/xmleditor/"
- "static/plugins/"
- "static/plugins/"
- "**/test/"
- "**/tests/"