From 1fbc0ca083a2944d726c42388a640fe1e1d80c1d Mon Sep 17 00:00:00 2001 From: Sven Hagemann Date: Thu, 17 Dec 2020 17:21:01 +0100 Subject: [PATCH] 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 --- .scrutinizer.yml | 27 ++++++++++++++++----------- phpcs.xml | 6 ++++++ 2 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 phpcs.xml diff --git a/.scrutinizer.yml b/.scrutinizer.yml index fa2a078..04a587e 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -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/* @@ -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 \ No newline at end of file + verify_argument_usable_as_reference: true diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..0f24ab8 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,6 @@ + + + ./lib + ./tests + +