Checkout Config
# scrutinizer-ci.com configuration
imports:
- php
filter:
excluded_paths:
- build/
- tmp/
- vendor/
- tools/doctum-config.php
checks:
php: true
tools:
external_code_coverage:
runs: 4 # php 7.x versions
timeout: 480 # 8 min
build:
nodes:
analysis:
environment:
php: 7.1
dependencies:
before:
- composer install
tests:
override:
- php-scrutinizer-run
- phpcs-run
Repository Config
filter:
excluded_paths:
- 'tests/*'
checks:
php:
uppercase_constants: true
simplify_boolean_return: true
return_doc_comments: true
remove_extra_empty_lines: true
no_goto: true
no_long_variable_names:
maximum: '20'
parameter_doc_comments: true
line_length:
max_length: '120'
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: false
fix_line_ending: true
encourage_single_quotes: true
avoid_todo_comments: true
avoid_fixme_comments: true
avoid_perl_style_comments: true
avoid_unnecessary_concatenation: true
parameters_in_camelcaps: true
code_rating: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
build:
tests:
override:
-
command: './vendor/bin/phpunit'
coverage:
file: 'coverage.xml'
format: 'php-clover'