Checkout Config
build:
environment:
php:
version: 8.1
tests:
override:
- command: './vendor/bin/phpunit --coverage-clover report.xml'
coverage:
file: 'report.xml'
format: 'clover'
Repository Config
filter:
excluded_paths:
- 'tests/*'
- 'example/*'
checks:
php:
use_self_instead_of_fqcn: true
uppercase_constants: true
return_doc_comments: true
remove_extra_empty_lines: true
return_doc_comment_if_not_inferrable: true
simplify_boolean_return: true
properties_in_camelcaps: true
phpunit_assertions: true
parameters_in_camelcaps: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
newline_at_end_of_file: true
more_specific_types_in_doc_comments: true
line_length:
max_length: '120'
function_in_camel_caps: true
fix_line_ending: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
classes_in_camel_caps: true
avoid_multiple_statements_on_same_line: true
align_assignments: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: true
build:
environment:
variables:
XDEBUG_MODE: 'coverage'