forked from polis-vk/2023-nosql-lsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
78 lines (78 loc) · 1.77 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
version: "2"
plugins:
duplication:
enabled: false
config:
languages:
java:
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:
AvoidCatchingGenericException:
enabled: false
AvoidInstantiatingObjectsInLoops:
enabled: false
AvoidSynchronizedAtMethodLevel:
enabled: false
AvoidThrowingRawExceptionTypes:
enabled: false
DataClass:
enabled: false
UselessParentheses:
enabled: false
MethodArgumentCouldBeFinal:
enabled: false
LocalVariableCouldBeFinal:
enabled: false
PrematureDeclaration:
enabled: false
sonar-java:
enabled: true
config:
sonar.java.source: "21"
checks:
squid:S00112:
enabled: false
checks:
argument-count:
config:
threshold: 6 # No more than 6 arguments
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"
- "src/test/"
- "src/main/java/ru/vk/itmo/pashchenkoalexandr/"