Checkout Config
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: true
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: false
no_global_keyword: true
avoid_usage_of_logical_operators: false
psr2_class_declaration: true
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: false
psr2_switch_declaration: true
psr2_control_structure_declaration: true
avoid_superglobals: true
security_vulnerabilities: true
no_exit: false
javascript: true
filter:
excluded_paths:
- '*.min.js'
- '*/dist/*'
- './public/'
- './data/'
- './vendor/'
- '*.js'
coding_style:
php:
indentation:
general:
use_tabs: false
build:
environment:
php: 7.1.1
mysql: 5.7
dependencies:
before:
- composer install
project_setup:
before:
- mysql -e 'source /home/scrutinizer/build/doc/dump.sql'
- mysql -u root -e 'SET PASSWORD = PASSWORD("root")'
- cp config/autoload/local.php.dist config/autoload/local.php
tests:
override:
-
command: 'php ./vendor/bin/phpunit --debug -v --coverage-clover=coverage.xml'
coverage:
file: 'coverage.xml'
format: 'clover'
Repository Config
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: true
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: false
no_global_keyword: true
avoid_usage_of_logical_operators: false
psr2_class_declaration: true
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: false
psr2_switch_declaration: true
psr2_control_structure_declaration: true
avoid_superglobals: true
security_vulnerabilities: true
no_exit: false
javascript: true
filter:
excluded_paths:
- '*.min.js'
- '*/dist/*'
- './public/'
- './data/'
- './vendor/'
- '*.js'
coding_style:
php:
indentation:
general:
use_tabs: false
build:
environment:
php: 7.1.1
mysql: 5.7
dependencies:
before:
- composer install
project_setup:
before:
- mysql -e 'source /home/scrutinizer/build/doc/dump.sql'
- mysql -u root -e 'SET PASSWORD = PASSWORD("root")'
- cp config/autoload/local.php.dist config/autoload/local.php
tests:
override:
-
command: 'php ./vendor/bin/phpunit --debug -v --coverage-clover=coverage.xml'
coverage:
file: 'coverage.xml'
format: 'clover'