-
Notifications
You must be signed in to change notification settings - Fork 31
/
.codeclimate.yml
86 lines (86 loc) · 1.97 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
79
80
81
82
83
84
85
86
version: "2"
plugins:
duplication:
enabled: false
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
AvoidThrowingNullPointerException:
enabled: false
AvoidThrowingRawExceptionTypes:
enabled: false
DataClass:
enabled: false
UselessParentheses:
enabled: false
MethodArgumentCouldBeFinal:
enabled: false
LocalVariableCouldBeFinal:
enabled: false
PrematureDeclaration:
enabled: false
SingularField:
enabled: false
UseVarargs:
enabled: false
sonar-java:
enabled: true
config:
sonar.java.source: "11"
checks:
squid:S00112:
enabled: false
squid:S1854:
enabled: false
squid:S2589:
enabled: false
squid:UnusedPrivateMethod:
enabled: false
checks:
argument-count:
config:
threshold: 5 # No more than 5 arguments
method-lines:
config:
threshold: 80 # No more than 2 screens
method-complexity:
config:
threshold: 15 # We are Russian hackers!
similar-code:
config:
threshold: 200 # 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/"