Checkout Config
filter:
paths: [src/*]
checks:
php:
code_rating: true
duplication: true
build:
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'clover'
Repository Config
filter:
excluded_paths:
- 'tests/*'
checks:
php:
use_self_instead_of_fqcn: true
uppercase_constants: true
simplify_boolean_return: true
return_doc_comments: true
remove_extra_empty_lines: true
parameter_doc_comments: true
no_short_variable_names:
minimum: '3'
no_short_method_names:
minimum: '3'
no_long_variable_names:
maximum: '20'
no_goto: true
newline_at_end_of_file: true
line_length:
max_length: '120'
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: false
avoid_todo_comments: true
avoid_multiple_statements_on_same_line: true
avoid_perl_style_comments: true
avoid_fixme_comments: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
within:
brackets: true