forked from e107inc/e107
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
118 lines (118 loc) · 2.47 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
version: "2"
checks:
argument-count:
config:
threshold: 7
complex-logic:
config:
threshold: 4
file-lines:
config:
threshold: 2000
method-complexity:
config:
threshold: 350
method-count:
config:
threshold: 250
method-lines:
config:
threshold: 1000
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 5
similar-code:
enabled: false
plugins:
phan:
enabled: true
config:
file_extensions: "php"
csslint:
enabled: false
duplication:
enabled: true
checks:
Identical code:
enabled: false
Design/TooManyPublicMethods:
enabled: false
Design/TooManyMethods:
enabled: false
Design/LongMethod:
enabled: false
config:
languages:
- javascript
- php
eslint:
enabled: false
fixme:
enabled: false
phpmd:
enabled: false
checks:
method-complexity:
enabled: false
method-lines:
enabled: false
Identical code:
enabled: false
CyclomaticComplexity:
enabled: false
CleanCode/StaticAccess:
enabled: false
ExcessivePublicCount:
enabled: false
UnusedFormalParameter:
enabled: false
Design/LongClass:
enabled: false
Design/TooManyFields:
enabled: false
Design/TooManyMethods:
enabled: false
Design/TooManyPublicMethods:
enabled: false
Design/WeightedMethodCount:
enabled: false
CleanCode/BooleanArgumentFlag:
enabled: false
CleanCode/ElseExpression:
enabled: false
UnusedLocalVariable:
enabled: false
config:
file_extensions: "php"
rulesets: "cleancode,unusedcode,codesize"
exclude_patterns:
- "config/"
- "db/"
- "dist/"
- "features/"
- "**/node_modules/"
- "script/"
- "**/spec/"
- "**/test/"
- "**/tests/"
- "**/vendor/"
- "**/*.d.ts"
- "e107_plugins/log/js/awesomechart.js"
- "e107_core/**/*.sc"
- "e107_docs/**/*"
- "e107_handlers/magpie_rss.php"
- "e107_handlers/pclerror.lib.php"
- "e107_handlers/pclzip.lib.php"
- "e107_handlers/pcltar.lib.php"
- "e107_handlers/pcltrace.lib.php"
- "e107_images/**/*"
- "e107_system/core_image.phar"
- "e107_web/**/*"
- "e107_tests/tests/**/*"
# Ignore symlinks that are allowed to be broken due to local configurations
- "e107_tests/lib/ci/salt/pillars/config.sls"
- "e107_tests/lib/ci/salt/pillars/config-local.sls"