Skip to content

Commit

Permalink
Scrutinizer: Upgrade phpcs fixer
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Sven Hagemann committed Dec 17, 2020
1 parent 7a7a967 commit 1fbc0ca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@ imports:
tools:
js_hint: true
php_code_sniffer: true
php_cs_fixer:
config: { level: psr2 }
enabled: true

build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=code-coverage-file'
coverage:
file: 'code-coverage-file'
format: 'php-clover'
nodes:
analysis:
tests:
override:
- phpcs-run
tests:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=code-coverage-file'
coverage:
file: 'code-coverage-file'
format: 'php-clover'

filter:
excluded_paths:
- tests/*
Expand Down Expand Up @@ -130,4 +135,4 @@ checks:
no_underscore_prefix_in_properties: true
no_underscore_prefix_in_methods: true
blank_line_after_namespace_declaration: true
verify_argument_usable_as_reference: true
verify_argument_usable_as_reference: true
6 changes: 6 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<ruleset>
<file>./lib</file>
<file>./tests</file>
<rule ref="PSR2" />
</ruleset>

0 comments on commit 1fbc0ca

Please sign in to comment.