Repository Config
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
Global Config
imports:
- php
filter:
excluded_paths:
- Test/*
- Tests/*
- vendor/*
- tests/*
build:
environment:
php:
version: 8.0
tests:
override:
-
command: 'vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=current-coverage'
coverage:
file: 'current-coverage'
format: 'php-clover'
nodes:
tests: true
analysis:
tests:
override:
-
command: phpcs-run
use_website_config: true
checks:
php:
variable_existence: true
verify_access_scope_valid: true
verify_argument_usable_as_reference: true
verify_property_names: true
use_statement_alias_conflict: true
uppercase_constants: true
unused_variables: true
unused_properties: true
unused_parameters: true
unused_methods: true
unreachable_code: true
require_php_tag_first: true
php5_style_constructor: true
parameters_in_camelcaps: true
no_short_open_tag: true
no_debug_code: true
lowercase_php_keywords: true
lowercase_basic_constants: true
code_rating: true
properties_in_camelcaps: true
phpunit_assertions: true
param_doc_comment_if_not_inferrable: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true