Skip to content

Commit 1fbc0ca

Browse files
author
Sven Hagemann
committed
Scrutinizer: Upgrade phpcs fixer
php_cs_fixer is deprecated by scrutinizer. After upgrading to PHP 7.3 this configuration is broken, due to Scrutinizer installing an older version. I upgraded the config, this makes scrutinizer always checkout the latest version of php-cs-fixer
1 parent 7a7a967 commit 1fbc0ca

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

.scrutinizer.yml

+16-11
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@ imports:
33
tools:
44
js_hint: true
55
php_code_sniffer: true
6-
php_cs_fixer:
7-
config: { level: psr2 }
8-
enabled: true
6+
97
build:
10-
tests:
11-
override:
12-
-
13-
command: 'vendor/bin/phpunit --coverage-clover=code-coverage-file'
14-
coverage:
15-
file: 'code-coverage-file'
16-
format: 'php-clover'
8+
nodes:
9+
analysis:
10+
tests:
11+
override:
12+
- phpcs-run
13+
tests:
14+
tests:
15+
override:
16+
-
17+
command: 'vendor/bin/phpunit --coverage-clover=code-coverage-file'
18+
coverage:
19+
file: 'code-coverage-file'
20+
format: 'php-clover'
21+
1722
filter:
1823
excluded_paths:
1924
- tests/*
@@ -130,4 +135,4 @@ checks:
130135
no_underscore_prefix_in_properties: true
131136
no_underscore_prefix_in_methods: true
132137
blank_line_after_namespace_declaration: true
133-
verify_argument_usable_as_reference: true
138+
verify_argument_usable_as_reference: true

phpcs.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<file>./lib</file>
4+
<file>./tests</file>
5+
<rule ref="PSR2" />
6+
</ruleset>

0 commit comments

Comments
 (0)