Repository Config
filter:
excluded_paths:
- "*/Tests/*"
coding_style:
php: { }
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
align_assignments: true
avoid_fixme_comments: true
avoid_multiple_statements_on_same_line: true
avoid_perl_style_comments: true
avoid_todo_comments: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
classes_in_camel_caps: true
custom_coding_standard:
ruleset_path: ruleset.xml
encourage_postdec_operator: true
encourage_single_quotes: true
function_in_camel_caps: true
line_length:
max_length: '120'
more_specific_types_in_doc_comments: true
newline_at_end_of_file: true
no_goto: true
no_long_variable_names:
maximum: '20'
no_new_line_at_end_of_file: true
no_short_method_names:
minimum: '3'
tools:
external_code_coverage:
timeout: 600
runs: 3
Global Config
filter: { }
coding_style:
php: { }
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
tools:
external_code_coverage:
timeout: 600
runs: 3
build:
tests:
override:
-
command: 'phpunit --coverage-clover=coverage.clover'
coverage:
file: 'coverage.clover'
format: 'clover'