File tree Expand file tree Collapse file tree 4 files changed +100
-7
lines changed Expand file tree Collapse file tree 4 files changed +100
-7
lines changed Original file line number Diff line number Diff line change
1
+ filter :
2
+ paths : [src/*]
3
+ excluded_paths : [tests/*]
4
+ tools :
5
+ php_analyzer : true
6
+ php_sim : true
7
+ php_pdepend : true
8
+ sensiolabs_security_checker : true
9
+ php_changetracking : true
10
+ php_mess_detector :
11
+ enabled : true
12
+ config :
13
+ ruleset : ~
14
+ code_size_rules :
15
+ cyclomatic_complexity : true
16
+ npath_complexity : true
17
+ excessive_method_length : true
18
+ excessive_class_length : true
19
+ excessive_parameter_list : true
20
+ excessive_public_count : true
21
+ too_many_fields : true
22
+ too_many_methods : true
23
+ excessive_class_complexity : true
24
+ design_rules :
25
+ exit_expression : true
26
+ eval_expression : true
27
+ goto_statement : true
28
+ number_of_class_children : true
29
+ depth_of_inheritance : true
30
+ coupling_between_objects : true
31
+ unused_code_rules :
32
+ unused_private_field : true
33
+ unused_local_variable : true
34
+ unused_private_method : true
35
+ unused_formal_parameter : true
36
+ naming_rules :
37
+ short_variable :
38
+ minimum : 3
39
+ long_variable :
40
+ maximum : 20
41
+ short_method :
42
+ minimum : 3
43
+ constructor_conflict : true
44
+ constant_naming : true
45
+ boolean_method_name : true
46
+ controversial_rules :
47
+ superglobals : true
48
+ camel_case_class_name : true
49
+ camel_case_property_name : true
50
+ camel_case_method_name : true
51
+ camel_case_parameter_name : true
52
+ camel_case_variable_name : true
53
+ external_code_coverage :
54
+ timeout : 600
55
+ checks :
56
+ php :
57
+ code_rating : true
58
+
59
+ build :
60
+ nodes :
61
+ analysis :
62
+ project_setup :
63
+ override : true
64
+ tests :
65
+ override :
66
+ - php-scrutinizer-run --enable-security-analysis
Original file line number Diff line number Diff line change
1
+ language : php
2
+
3
+ php :
4
+ - 7.2
5
+ - 7.3
6
+
7
+ services :
8
+ - rabbitmq
9
+
10
+ cache :
11
+ directories :
12
+ - $HOME/.cache/composer
13
+
14
+ before_script :
15
+ - mkdir -p build/logs
16
+
17
+ install :
18
+ - travis_retry composer install --no-interaction --no-suggest
19
+ - travis_retry wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar
20
+ - chmod +x ocular.phar
21
+
22
+ script :
23
+ - ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
24
+
25
+ after_script :
26
+ - if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar; fi
27
+ - if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
Original file line number Diff line number Diff line change 19
19
"php" : " ^7.2" ,
20
20
"amphp/amp" : " ^2.0" ,
21
21
"amphp/socket" : " ^0.10.11" ,
22
- "phpinnacle/buffer" : " ^0.1.1 "
22
+ "phpinnacle/buffer" : " ^0.1.2 "
23
23
},
24
24
"require-dev" : {
25
25
"phpunit/phpunit" : " ^6.0" ,
You can’t perform that action at this time.
0 commit comments