Checkout Config
filter:
excluded_paths: [vendor/*, tests/*]
checks:
php:
code_rating: true
duplication: true
before_commands:
- 'composer install --dev --prefer-source'
build:
nodes:
coverage:
tests:
override:
- command: 'vendor/bin/phpunit --coverage-clover clover.xml; if [ "$?" -gt "2" ]; then exit 1; fi'
coverage:
file: clover.xml
format: php-clover
idle_timeout: 1800
Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
tests: true
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
coding_style:
php:
indentation:
general:
size: 1
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false