forked from temnovochka/2019-highload-dht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
56 lines (56 loc) · 1.23 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
version: "2"
plugins:
checkstyle:
enabled: true
config:
file: "checkstyle.xml"
pmd:
enabled: true
config:
rules:
- "java-basic"
- "java-clone"
- "java-design"
- "java-empty"
- "java-finalizers"
- "java-imports"
- "java-migrating"
- "java-optimizations"
- "java-strictexception"
- "java-strings"
- "java-sunsecure"
- "java-typeresolution"
- "java-unnecessary"
- "java-unusedcode"
checks:
AvoidSynchronizedAtMethodLevel:
enabled: false
AvoidThrowingRawExceptionTypes:
enabled: false
DataClass:
enabled: false
sonar-java:
enabled: true
config:
sonar.java.source: "11"
checks:
squid:S00112:
enabled: false
checks:
method-lines:
config:
threshold: 80 # No more than 2 screens
method-complexity:
config:
threshold: 15 # We are Russian hackers!
similar-code:
config:
threshold: 60 # Sometimes it is not so similar
identical-code:
config:
threshold: 60 # Nope, not a duplicate
return-statements:
config:
threshold: 10 # Have pattern-matching-like code
exclude_patterns:
- "**/*.svg"