Checkout Config
checks:
php:
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
classes_in_camel_caps: true
encourage_single_quotes: true
fix_line_ending: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
function_in_camel_caps: true
newline_at_end_of_file: true
no_goto: true
no_short_method_names:
minimum: '3'
no_short_variable_names:
minimum: '3'
overriding_parameter: false
parameter_doc_comments: true
prefer_while_loop_over_for_loop: true
remove_extra_empty_lines: true
properties_in_camelcaps: true
return_doc_comment_if_not_inferrable: true
return_doc_comments: true
simplify_boolean_return: true
uppercase_constants: true
use_self_instead_of_fqcn: true
filter:
paths:
- "src/*"
excluded_paths:
- "src/*Type/"
- "src/ClassMap.php"
coding_style:
php: { }
build:
nodes:
analysis:
project_setup:
override: ['true']
tests:
override: [php-scrutinizer-run]
tests: true
Repository Config
checks:
php:
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
classes_in_camel_caps: true
encourage_single_quotes: true
fix_line_ending: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
function_in_camel_caps: true
newline_at_end_of_file: true
no_goto: true
no_long_variable_names:
maximum: '20'
no_short_method_names:
minimum: '3'
no_short_variable_names:
minimum: '3'
overriding_parameter: false
parameter_doc_comments: true
prefer_while_loop_over_for_loop: true
remove_extra_empty_lines: true
properties_in_camelcaps: true
return_doc_comment_if_not_inferrable: true
return_doc_comments: true
simplify_boolean_return: true
uppercase_constants: true
use_self_instead_of_fqcn: true
filter: { }
coding_style:
php: { }
build:
nodes:
analysis:
project_setup:
override: ['true']
tests:
override: [php-scrutinizer-run]
tests: true