forked from Adobe-Consulting-Services/acs-aem-commons
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.codeclimate.yml
73 lines (71 loc) · 1.46 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
---
version: "2"
checks:
argument-count:
enabled: false
complex-logic:
enabled: false
file-lines:
enabled: false
method-complexity:
enabled: false
method-count:
enabled: false
method-lines:
enabled: false
nested-control-flow:
enabled: false
return-statements:
enabled: false
similar-code:
enabled: false
identical-code:
enabled: false
plugins:
sonar-java:
enabled: true
exclude_patterns:
- "**/src/test/"
config:
sonar.java.source: 8
checkstyle:
enabled: true
config:
file: ".codeclimate/checkstyle.xml"
exclude_patterns:
- "**/src/test/java/com/amazonaws/"
- "**/src/test/java/ch/randelshofer/"
# csslint:
# enabled: true
# duplication:
# enabled: true
# config:
# languages:
# - javascript
# eslint:
# enabled: true
# fixme:
# enabled: true
pmd:
enabled: true
config:
file: ".codeclimate/pmd-ruleset.xml"
exclude_patterns:
- ".idea/"
- "**/vendor/"
- "**/extensions/contentfinder/"
- "*/target/"
- "**/org/apache/jackrabbit/oak/**"
# Common exclusions
# squid:S3776 - Cognitive Complexity
# squid:S1214 - constants in interface
# squid:S1141 - nested try
# squid:S1192 - literals
# squid:S1149 - Hashtable
# squid:S00112 - specific exceptions
# squid:S2095 - close stream
# squid:S1172 - unused method param
# squid:S00115 - constant name
# squid:S1144 - unused private method
#
# checkstyle:abbreviationaswordinname - abbreviation