Checkout Config
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
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: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: false
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: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: false
no_exit: false
filter:
excluded_paths:
- "tests/"
- "tests"
coding_style:
php: { }
build:
environment:
php:
version: 5.5
tests:
override:
-
command: 'php vendor/bin/phpunit --coverage-clover=coverage-report'
coverage:
file: 'coverage-report'
format: 'clover'
Repository Config
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: true
no_exit: false
simplify_boolean_return: true
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
properties_in_camelcaps: true
remove_extra_empty_lines: true
phpunit_assertions: true
parameters_in_camelcaps: true
parameter_doc_comments: true
filter: { }
coding_style:
php: true
build:
environment:
php:
version: 7.1.0
tests:
override:
-
command: 'php vendor/bin/phpunit --coverage-clover=coverage-report'
coverage:
file: 'coverage-report'
format: 'clover'
nodes:
tests: true
analysis:
tests:
override:
-
command: phpcs-run
use_website_config: true