-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.codeclimate.yml
159 lines (159 loc) · 3.92 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
version: "2"
checks:
argument-count:
enabled: true
complex-logic:
enabled: true
config:
threshold: 5
file-lines:
enabled: true
config:
threshold: 350
method-complexity:
enabled: true
config:
threshold: 15
method-count:
enabled: true
config:
threshold: 25
method-lines:
enabled: true
config:
threshold: 35
nested-control-flow:
enabled: true
config:
threshold: 5
return-statements:
enabled: true
config:
threshold: 5
similar-code:
enabled: true
identical-code:
enabled: true
plugins:
editorconfig:
enabled: true
channel: beta
exclude_patterns:
- "images/"
- "docs/"
- "release/"
- "storage/"
- "**/*.ico"
- "**/*.png"
- "**/*.zip"
- "**/*.phar"
config:
editorconfig: .editorconfig
nodesecurity:
enabled: true
eslint:
enabled: true
channel: "eslint-5"
sonar-php:
enabled: true
exclude_patterns:
- "assets/"
- "error_docs/"
- "gulp/"
- "docs/"
- "public/images/"
- "public/css/"
- "public/js/"
- "public/themes/"
- "templates/"
- "templates_core/"
- "templates_modules/"
- "storage/"
- "vendor/"
- "**/*.ico"
- "**/*.png"
config:
file_extensions: "php"
checks:
php:S3776:
enabled: false
php:S1192:
enabled: false
php:S1448:
enabled: false
phpmd:
enabled: true
exclude_patterns:
- "assets/"
- "error_docs/"
- "docs/"
- "gulp/"
- "public/images/"
- "public/css/"
- "public/js/"
- "public/themes/"
- "templates/"
- "templates_core/"
- "templates_modules/"
- "storage/"
- "vendor/"
config:
file_extensions: "php"
rulesets: "phpmd.xml"
checks:
CleanCode/StaticAccess:
enabled: false
Naming/BooleanGetMethodName:
enabled: false
phpcodesniffer:
enabled: false
exclude_patterns:
- "assets/"
- "error_docs/"
- "gulp/"
- "docs/"
- "public/images/"
- "public/css/"
- "public/js/"
- "public/themes/"
- "templates/"
- "templates_core/"
- "templates_modules/"
- "storage/"
- "vendor/"
config:
file_extensions: "php"
standard: "PSR2,phpcs.xml"
checks:
Squiz Functions MultiLineFunctionDeclaration OneParamPerLine:
enabled: false
Squiz ControlStructures ControlSignature SpaceAfterCloseParenthesis:
enabled: false
Squiz Functions MultiLineFunctionDeclaration NewlineBeforeOpenBrace:
enabled: false
Squiz ControlStructures ControlSignature SpaceAfterCloseBrace:
enabled: false
Squiz ControlStructures ControlSignature SpaceAfterKeyword:
enabled: false
exclude_patterns:
- "config/"
- "db/"
- "docs/"
- "dist/"
- "features/"
- "**/node_modules/"
- "script/"
- "**/spec/"
- "**/test/"
- "**/tests/"
- "Tests/"
- "vendor/"
- "**/*_test.go"
- "**/*.d.ts"
- "**/*.zip"
- "**/*.phar"
- "semantic/"
- "composer.lock"
- "package-lock.json"
- "public/js/jqueryCookieGuard.1.1.0.js"