Repository Config
tools:
#external_code_coverage: true
php_sim: true
php_pdepend: true
php_analyzer: true
filter:
excluded_paths:
- 'tests/*'
checks:
php:
simplify_boolean_return: true
remove_extra_empty_lines: true
properties_in_camelcaps: true
parameters_in_camelcaps: true
build:
nodes:
tests: true
analysis:
tests:
override:
- php-scrutinizer-run
- phpcs-run --standard=PSR12 --ignore=vendor .
# I had to require the latest version of Code Sniffer because the
# version used in the server was too old and was causing issues with
# PHP 7.3. This can also be manually updated via the
# "Open-Source Analysis Tool Configs" tab in this same page.
dependencies:
after:
- composer require --dev squizlabs/php_codesniffer
coverage:
tests:
override:
- command: composer test
coverage:
file: build/logs/clover.xml
format: clover
build_failure_conditions:
# Code Coverage decreased from previous inspection
- 'project.metric_change("scrutinizer.test_coverage", < 0)'