Checkout Config
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
external_code_coverage: true
Repository Config
filter:
excluded_paths:
- 'test/*'
- 'src/Platform/Webservices/Connector.php'
checks:
php:
use_self_instead_of_fqcn: true
return_doc_comments: true
parameters_in_camelcaps: false
parameter_doc_comments: true
optional_parameters_at_the_end: true
no_short_variable_names:
minimum: '3'
no_short_method_names:
minimum: '3'
newline_at_end_of_file: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
classes_in_camel_caps: true
avoid_perl_style_comments: true
avoid_multiple_statements_on_same_line: true
avoid_fixme_comments: true
align_assignments: false
Global Config
build:
environment:
php: '5.6.0'
build:
tests:
override:
-
command: 'phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'php-clover'
checks:
php:
psr2_switch_declaration: true
psr2_control_structure_declaration: true
psr2_class_declaration: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: false
no_eval: true
no_debug_code: true
single_namespace_per_use: true
lowercase_basic_constants: true
fix_php_opening_tag: true
fix_linefeed: true
fix_identation_4spaces: true
encourage_shallow_comparison: true
blank_line_after_namespace_declaration: true
avoid_closing_tag: true
return_doc_comments: true
parameter_doc_comments: true
more_specific_types_in_doc_comments: true
code_rating: true
uppercase_constants: true
phpunit_assertions: true
optional_parameters_at_the_end: true
no_short_variable_names:
minimum: '3'
newline_at_end_of_file: true
encourage_single_quotes: true
remove_extra_empty_lines: true
classes_in_camel_caps: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
ternary_operator:
in_short_version: true
other:
after_type_cast: false
braces:
classes_functions:
class: new-line