-
Notifications
You must be signed in to change notification settings - Fork 35
/
.scrutinizer.yml
197 lines (197 loc) · 7.63 KB
/
.scrutinizer.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
filter:
excluded_paths:
- 'extras/libraries/*'
- 'htdocs/libraries/phpopenid/Auth/*'
- 'extras/plugins/*'
- 'htdocs/libraries/geshi/*'
- 'htdocs/libraries/smarty/internals/*'
- 'htdocs/editors/FCKeditor/*'
- 'htdocs/install/modules/protector/trust_path/modules/protector/filters_byconfig/*'
- 'htdocs/install/modules/protector/root/*'
- 'htdocs/libraries/image-editor/*'
- 'htdocs/libraries/smarty/icms_plugins/*'
- 'htdocs/plugins/sourceeditors/*'
- 'htdocs/plugins/csstidy/*'
- 'upgrade/upd-icms-1.0-to-1.1/*'
- 'htdocs/libraries/phpopenid/admin/*'
- 'htdocs/install/modules/protector/trust_path/modules/protector/class/*'
- 'htdocs/plugins/rating/*'
- 'htdocs/plugins/autotasks/*'
- 'htdocs/editors/dhtmltextarea/*'
- 'htdocs/install/modules/protector/trust_path/modules/protector/language/*'
- 'htdocs/libraries/wideimage/lib/vendor/de77/*'
- 'extras/ssl/*'
- 'upgrade/language/*'
- upgrade/index.php
- upgrade/login.php
- htdocs/mainfile.php
- 'htdocs/plugins/waiting/*'
- upgrade/upgrade_tpl.php
- 'htdocs/libraries/xml/rss/*'
- 'htdocs/libraries/recaptcha/*'
- 'upgrade/cnt-2.2.x-to-2.0.x/*'
- 'upgrade/cnt-2.3.x-to-2.0.x/*'
- 'upgrade/upd-2.0.13-to-2.0.14/*'
- 'upgrade/upd-2.0.15-to-2.0.16/*'
- 'upgrade/upd-2.0.16-to-2.0.17/*'
- 'upgrade/upd-2.0.17-to-2.0.18/*'
- htdocs/install/page_start.php
- 'htdocs/libraries/icms/ipf/seo/*'
- 'htdocs/libraries/simplepie/idn/*'
- 'htdocs/editors/tinymce/language/*'
- htdocs/install/page_no_php5.php
- htdocs/install/page_siteinit.php
- htdocs/language/english/core.php
- htdocs/language/english/mail.php
- htdocs/libraries/tcpdf/tcpdf.php
- htdocs/install/page_safe_mode.php
- htdocs/libraries/tcpdf/pdf417.php
- htdocs/libraries/tcpdf/qrcode.php
- htdocs/editors/tinymce/tinymce.php
- htdocs/libraries/xml/saxparser.php
- htdocs/libraries/tcpdf/barcodes.php
- 'upgrade/upd-2.0.18-to-impresscms-1.0/*'
- htdocs/libraries/icms/db/IUtility.php
- htdocs/libraries/tcpdf/2dbarcodes.php
- htdocs/libraries/tcpdf/datamatrix.php
- htdocs/libraries/tcpdf/htmlcolors.php
- htdocs/libraries/tcpdf/spotcolors.php
- htdocs/libraries/xml/rpc/xoopsapi.php
- htdocs/libraries/tcpdf/fonts/times.php
- htdocs/libraries/xml/rpc/xmlrpcapi.php
dependency_paths:
- 'extras/libraries/*'
- 'htdocs/libraries/phpopenid/Auth/*'
- 'extras/plugins/*'
- 'htdocs/libraries/geshi/*'
- 'htdocs/libraries/smarty/internals/*'
- 'htdocs/editors/FCKeditor/*'
- 'htdocs/install/modules/protector/trust_path/modules/protector/filters_byconfig/*'
- 'htdocs/install/modules/protector/root/*'
- 'htdocs/libraries/image-editor/*'
- 'htdocs/libraries/smarty/icms_plugins/*'
- 'htdocs/plugins/sourceeditors/*'
- 'htdocs/plugins/csstidy/*'
- 'upgrade/upd-icms-1.0-to-1.1/*'
- 'htdocs/libraries/phpopenid/admin/*'
- 'htdocs/install/modules/protector/trust_path/modules/protector/class/*'
- 'htdocs/plugins/rating/*'
- 'htdocs/plugins/autotasks/*'
- 'htdocs/editors/dhtmltextarea/*'
- 'htdocs/install/modules/protector/trust_path/modules/protector/language/*'
- 'htdocs/libraries/icms/sys/*'
- 'htdocs/libraries/icms/db/mysql/*'
- 'htdocs/libraries/wideimage/lib/vendor/de77/*'
- 'extras/ssl/*'
- 'upgrade/language/*'
- upgrade/index.php
- upgrade/login.php
- htdocs/mainfile.php
- 'htdocs/plugins/waiting/*'
- upgrade/upgrade_tpl.php
- 'htdocs/libraries/xml/rss/*'
- htdocs/include/jalali.php
- htdocs/libraries/icms.php
- upgrade/check_version.php
- 'htdocs/libraries/recaptcha/*'
- 'upgrade/cnt-2.2.x-to-2.0.x/*'
- 'upgrade/cnt-2.3.x-to-2.0.x/*'
- 'upgrade/upd-2.0.13-to-2.0.14/*'
- 'upgrade/upd-2.0.15-to-2.0.16/*'
- 'upgrade/upd-2.0.16-to-2.0.17/*'
- 'upgrade/upd-2.0.17-to-2.0.18/*'
- htdocs/install/page_start.php
- 'htdocs/libraries/icms/ipf/seo/*'
- htdocs/include/rating.rate.php
- 'htdocs/libraries/simplepie/idn/*'
- 'htdocs/editors/tinymce/language/*'
- htdocs/install/page_no_php5.php
- htdocs/libraries/icms/Event.php
- htdocs/install/page_siteinit.php
- htdocs/language/english/core.php
- htdocs/language/english/mail.php
- htdocs/libraries/tcpdf/tcpdf.php
- htdocs/install/page_safe_mode.php
- htdocs/language/english/error.php
- htdocs/language/english/theme.php
- 'htdocs/libraries/paginationstyles/*'
- htdocs/libraries/tcpdf/pdf417.php
- htdocs/libraries/tcpdf/qrcode.php
- htdocs/editors/tinymce/tinymce.php
- 'htdocs/libraries/icms/ipf/registry/*'
- htdocs/libraries/icms/ipf/Tree.php
- htdocs/libraries/xml/saxparser.php
- htdocs/language/english/captcha.php
- htdocs/libraries/tcpdf/barcodes.php
- htdocs/language/english/uploader.php
- 'htdocs/modules/system/admin/mimetype/*'
- htdocs/modules/system/admin/tags.php
- htdocs/modules/system/class/Tags.php
- 'upgrade/upd-2.0.18-to-impresscms-1.0/*'
- htdocs/libraries/icms/db/IUtility.php
- htdocs/libraries/tcpdf/2dbarcodes.php
- htdocs/libraries/tcpdf/datamatrix.php
- htdocs/libraries/tcpdf/htmlcolors.php
- htdocs/libraries/tcpdf/spotcolors.php
- htdocs/libraries/xml/rpc/xoopsapi.php
- htdocs/plugins/preloads/bootstrap.php
- htdocs/plugins/preloads/protector.php
- htdocs/language/english/privpolicy.php
- 'htdocs/libraries/icms/auth/method/ldap/*'
- htdocs/libraries/tcpdf/fonts/times.php
- htdocs/libraries/xml/rpc/xmlrpcapi.php
checks:
php:
duplication: true
unused_methods: false
unused_parameters: false
argument_type_checks: false
verify_property_names: false
method_calls_on_non_object: false
fix_doc_comments: false
instanceof_class_exists: false
catch_class_exists: false
assignment_of_null_return: false
use_statement_alias_conflict: false
tools:
php_sim:
enabled: true
min_mass: 50 # Defaults to 16
coding_style:
php:
indentation:
general:
use_tabs: true
size: 4
switch:
indent_case: true
spaces:
around_operators:
concatenation: true
ternary_operator:
before_condition: true
after_condition: true
before_alternative: true
after_alternative: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
do_while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower