Checkout Config
checks:
php: true
filter:
excluded_paths:
- bin/*
- generated/*
- test/*
- tools/*
build:
environment:
php:
version: 7.4
nodes:
analysis: # https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#security-analysis
project_setup:
override: true
tests:
override:
- php-scrutinizer-run --enable-security-analysis
coverage: # https://scrutinizer-ci.com/docs/build/code_coverage
dependencies:
before:
- php phive.phar --no-progress install --copy --force-accept-unsigned --trust-gpg-keys 31C7E470E2138192,4AA394086372C20A
tests:
override:
-
command: composer run test-full
coverage:
file: report/coverage/clover.xml
format: php-clover
Repository Config
filter:
excluded_paths:
- 'test/*'
checks:
php:
use_self_instead_of_fqcn: true
uppercase_constants: true
simplify_boolean_return: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
phpunit_assertions: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
no_goto: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
encourage_single_quotes: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
avoid_perl_style_comments: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false
build: true