-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scrutinizer.yml
78 lines (74 loc) · 2.01 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
build:
environment:
selenium: false
memcached: false
elasticsearch: false
rabbitmq: false
postgresql: false
redis: false
php:
version: 7.1.1
ini:
'date.timezone': 'Europe/London'
cache:
directories:
- ~/cphalcon
dependencies:
before:
- cd /home/scrutinizer/build
- git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b master
- cd cphalcon/build
- ./install
- sed -i '$ a \\n[Phalcon]\nextension=phalcon.so\n' /home/scrutinizer/.phpenv/versions/7.1.1/etc/php.ini
- php -m | grep -i Phalcon
tests:
override:
-
command: 'cd /home/scrutinizer/build; ./run_tests.sh'
coverage:
file: 'tests/_output/coverage.xml'
format: 'clover'
filter:
excluded_paths:
- 'vendor/*'
- 'app/migrations/*'
tools:
# external_code_coverage: true
php_analyzer: true
php_mess_detector: true
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ['app', 'library', 'public']
php_loc:
enabled: true
excluded_dirs: ['vendor', 'tests', 'app/migrations']
php_loc:
enabled: true
excluded_dirs: ['vendor', 'tests', 'app/migrations']
php_cpd:
enabled: true
excluded_dirs: ['vendor', 'tests', 'app/migrations']
checks:
php:
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
optional_parameters_at_the_end: true
no_short_variable_names:
minimum: '3'
no_short_method_names:
minimum: '3'
no_long_variable_names:
maximum: '20'
no_goto: true
newline_at_end_of_file: true
more_specific_types_in_doc_comments: true
encourage_single_quotes: true
encourage_postdec_operator: true
classes_in_camel_caps: true
avoid_multiple_statements_on_same_line: true
align_assignments: true
code_rating: true