forked from polis-vk/2019-ads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
47 lines (47 loc) · 1.02 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
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:
AvoidInstantiatingObjectsInLoops:
enabled: false
sonar-java:
enabled: true
config:
sonar.java.source: "11"
checks:
squid:S106:
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