Repository Config
filter:
excluded_paths:
- 'src/CloverToHtml/Template/js/*'
tools:
js_hint: true
php_mess_detector: true
php_cs_fixer: true
php_analyzer:
config:
parameter_reference_check: { enabled: false }
checkstyle: { enabled: false, no_trailing_whitespace: true, naming: { enabled: true, local_variable: '^[a-z][a-zA-Z0-9]*$', abstract_class_name: ^Abstract|Factory$, utility_class_name: 'Utils?$', constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$', property_name: '^[a-z][a-zA-Z0-9]*$', method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$', parameter_name: '^[a-z][a-zA-Z0-9]*$', interface_name: '^[A-Z][a-zA-Z0-9]*Interface$', type_name: '^[A-Z][a-zA-Z0-9]*$', exception_name: '^[A-Z][a-zA-Z0-9]*Exception$', isser_method_name: '^(?:is|has|should|may|supports)' } }
unreachable_code: { enabled: false }
check_access_control: { enabled: false }
typo_checks: { enabled: false }
check_variables: { enabled: false }
check_calls: { enabled: true, too_many_arguments: true, missing_argument: true, argument_type_checks: lenient }
suspicious_code: { enabled: false, overriding_parameter: false, overriding_closure_use: false, parameter_closure_use_conflict: false, parameter_multiple_times: false, non_existent_class_in_instanceof_check: false, non_existent_class_in_catch_clause: false, assignment_of_null_return: false, non_commented_switch_fallthrough: false, non_commented_empty_catch_block: false, overriding_private_members: false, use_statement_alias_conflict: false, precedence_in_condition_assignment: false }
dead_assignments: { enabled: false }
verify_php_doc_comments: { enabled: false, parameters: false, return: false, suggest_more_specific_types: false, ask_for_return_if_not_inferrable: false, ask_for_param_type_annotation: false }
loops_must_use_braces: { enabled: false }
check_usage_context: { enabled: true, method_call_on_non_object: { enabled: true, ignore_null_pointer: true }, foreach: { value_as_reference: true, traversable: true }, missing_argument: true, argument_type_checks: lenient }
simplify_boolean_return: { enabled: false }
phpunit_checks: { enabled: false }
reflection_checks: { enabled: false }
precedence_checks: { enabled: true, assignment_in_condition: true, comparison_of_bit_result: true }
basic_semantic_checks: { enabled: false }
unused_code: { enabled: false }
deprecation_checks: { enabled: false }
useless_function_calls: { enabled: false }
metrics_lack_of_cohesion_methods: { enabled: false }
metrics_coupling: { enabled: true, stable_code: { namespace_prefixes: { }, classes: { } } }
doctrine_parameter_binding: { enabled: false }
doctrine_entity_manager_injection: { enabled: false }
symfony_request_injection: { enabled: false }
doc_comment_fixes: { enabled: false }
reflection_fixes: { enabled: false }
use_statement_fixes: { enabled: true, remove_unused: true, preserve_multiple: false, preserve_blanklines: false, order_alphabetically: false }
php_code_sniffer: true
php_code_coverage:
config_path: phpunit.xml
php_cpd:
excluded_dirs:
- 'tests/*'
- vendor/
php_loc:
excluded_dirs:
- tests/
- vendor/
php_pdepend:
excluded_dirs:
- tests
php_hhvm: true
external_code_coverage: true
checks:
php:
code_rating: true
deprecated_code_usage: true
prefer_sapi_constant: true
no_unnecessary_function_call_in_for_loop: true
avoid_unnecessary_concatenation: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
verify_property_names: true
variable_existence: true
return_doc_comments: true
require_php_tag_first: true
parameter_doc_comments: true
foreach_traversable: true
encourage_shallow_comparison: true
phpunit_assertions: true
overriding_private_members: true
no_goto: true
avoid_usage_of_logical_operators: true
switch_fallthrough_commented: true
param_doc_comment_if_not_inferrable: true
more_specific_types_in_doc_comments: true
duplication: true
use_self_instead_of_fqcn: true
uppercase_constants: true
single_namespace_per_use: true
remove_extra_empty_lines: true
one_class_per_file: true
no_space_inside_cast_operator: true
no_short_open_tag: true
no_exit: true
no_global_keyword: true
no_error_suppression: true
no_else_if_statements: true
no_commented_out_code: true
newline_at_end_of_file: true
lowercase_php_keywords: true
lowercase_basic_constants: true
function_in_camel_caps: true
blank_line_after_namespace_declaration: true
classes_in_camel_caps: true
avoid_closing_tag: true
avoid_aliased_php_functions: true
align_assignments: true
avoid_fixme_comments: true
unused_properties: true
unused_variables: true
unused_methods: true
unreachable_code: true
too_many_arguments: true
no_unnecessary_if: true
no_unnecessary_final_modifier: true
no_empty_statements: true
avoid_useless_overridden_methods: true
use_statement_alias_conflict: true
precedence_in_conditions: true
no_non_implemented_abstract_methods: true
no_duplicate_arguments: true
instanceof_class_exists: true
useless_calls: true
unused_parameters: true
avoid_superglobals: true
avoid_duplicate_types: true
avoid_corrupting_byteorder_marks: true
return_doc_comment_if_not_inferrable: true
require_scope_for_properties: true
require_scope_for_methods: true
prefer_unix_line_ending: true
parameter_non_unique: true
closure_use_not_conflicting: true
closure_use_modifiable: true
catch_class_exists: true
argument_type_checks: true
no_underscore_prefix_in_properties: true
no_underscore_prefix_in_methods: true
no_debug_code: true
line_length:
max_length: '120'
avoid_todo_comments: true
avoid_tab_indentation: true
assignment_of_null_return: true
security_vulnerabilities: true
scope_indentation:
spaces_per_level: '4'
spacing_around_non_conditional_operators: true
spacing_around_conditional_operators: true
space_after_cast: true
prefer_while_loop_over_for_loop: true
parameters_in_camelcaps: true
optional_parameters_at_the_end: true
avoid_multiple_statements_on_same_line: true