forked from chamilo/chamilo-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
175 lines (170 loc) · 5.18 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
# .scrutinizer.yml - see https://scrutinizer-ci.com/docs/guides/php/continuous-integration-deployment for doc
# Excludes go for things do not contain code, are not managed well by Scrutinizer or are external libraries that
# Chamilo includes but that we cannot update without patching upstream.
build:
environment:
mysql: 5.5
php:
version: 5.6.0
ini:
'date.timezone': 'US/Pacific'
'phar.readonly': false
hosts:
my.chamilodev.net: '127.0.0.1'
checks:
php:
no_trailing_whitespace: true
code_rating: true
duplication: true
fix_php_opening_tag: false
remove_php_closing_tag: true
one_class_per_file: true
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: true
php5_style_constructor: true
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: true
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: true
single_namespace_per_use: false
psr2_switch_declaration: true
psr2_control_structure_declaration: true
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
uppercase_constants: true
prefer_while_loop_over_for_loop: true
newline_at_end_of_file: true
line_length:
max_length: '120'
parameter_doc_comments: true
parameters_in_camelcaps: true
return_doc_comments: true
use_self_instead_of_fqcn: true
overriding_parameter: false
avoid_entity_manager_injection: false
coding_style:
php:
indentation:
general:
use_tabs: false
size: 4
switch:
indent_case: true
spaces:
general:
linefeed_character: newline
around_operators:
concatenation: false
braces:
classes_functions:
class: new-line
function: new-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
#tools:
# php_mess_detector:
# enabled: true
# extensions:
# - php
# command: phpmd
# config:
# rulesets:
# - codesize
# php_analyzer:
# enabled: true
# filter:
# excluded_paths:
# - 'tests/*'
# extensions:
# - php
# php_code_sniffer:
# enabled: true
# config:
# standard: PSR2
# extensions:
# - php
# command: phpcs
# filter:
# excluded_paths:
# - 'tests/*'
# sensiolabs_security_checker:
# enabled: true
# php_pdepend:
# command: pdepend
# configuration_file: ~
# suffixes:
# - php
# excluded_dirs:
# - 'vendor'
# - 'tests/*'
# enabled: true
# php_code_coverage: true
filter:
excluded_paths:
- 'cli-config.php'
- 'var/*'
- 'config/*'
- 'documentation/*'
- 'app/Resources/*'
- 'main/admin/db.php'
- 'main/admin/ldap_synchro.php'
- 'main/auth/cas/lib/CAS/*'
- 'main/auth/shibboleth/*'
- 'main/auth/openid/*'
- 'main/inc/lib/browser/*'
- 'main/inc/lib/freemindflashbrowser/*'
- 'main/inc/lib/internationalization_database/*'
- 'main/inc/lib/javascript/*'
- 'main/inc/lib/kses-0.2.2/*'
- 'main/inc/lib/mimetex/*'
- 'main/inc/lib/nanogong/*'
- 'main/inc/lib/nusoap/*'
- 'main/inc/lib/opengraph/*'
- 'main/inc/lib/ppt2png/*'
- 'main/inc/lib/phpseclib'
- 'main/inc/lib/pear/*'
- 'main/inc/lib/phpmailer/*'
- 'main/inc/lib/phpseclib/*'
- 'main/inc/lib/portfolio.class.php'
- 'main/inc/lib/svg-edit/*'
- 'main/inc/lib/swfobject/*'
- 'main/inc/lib/wami-recorder/*'
- 'main/inc/lib/xajax/*'
- 'main/lp/packaging/*'
- 'main/template/*'
- 'main/img/*'
- 'main/lang/*'
- 'main/default_course_document'
- 'plugin/buycourses/src/Culqi/*'
- 'plugin/buycourses/src/Requests/*'
- 'plugin/buycourses/src/paypalfunctions.php'
- 'plugin/buycourses/src/Requests.php'
- 'plugin/kannelsms/vendor/*'
- 'plugin/clockworksms/vendor/*'
- 'plugin/pens/lib/'
- 'plugin/bbb/lib/bbb_api.php'
- 'plugin/ims_lti/OAuthSimple.php'
- 'plugin/sepe/src/wsse/*'
- 'tests/*'
- 'vendor/*'
- 'public/*'