Repository Config
filter:
excluded_paths:
- web/js/
Global Config
build:
nodes:
php-56:
environment:
php: 5.6
commands:
- checkout-code ~/project
- cd ~/project
- composer install --ignore-platform-reqs --no-dev --no-suggest --no-interaction
- php-scrutinizer-run
checks:
php:
code_rating: true
duplication: false
avoid_entity_manager_injection: false
avoid_perl_style_comments: true
avoid_unnecessary_concatenation: true
check_method_contracts:
verify_documented_constraints: true
verify_parent_constraints: true
verify_interface_like_constraints: true
encourage_postdec_operator: true
encourage_single_quotes: true
fix_doc_comments: false
newline_at_end_of_file: true
no_commented_out_code: false
optional_parameters_at_the_end: true
overriding_parameter: false
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
psr2_switch_declaration: false
return_doc_comments: true
return_doc_comment_if_not_inferrable: true
simplify_boolean_return: true
unused_parameters: false
unused_variables: false
uppercase_constants: true
use_self_instead_of_fqcn: true
verify_property_names: true
useless_calls: false
no_global_keyword: false
no_exit: false
psr2_class_declaration: false
unreachable_code: false
unused_methods: false
unused_properties: false
symfony_request_injection: false
switch_fallthrough_commented: false
sql_injection_vulnerabilities: true
security_vulnerabilities: false
overriding_private_members: false
non_commented_empty_catch_block: false
no_goto: true
no_debug_code: false
comparison_always_same_result: false
assignment_of_null_return: false
coding_style:
php:
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower
filter:
dependency_paths:
- vendor/