|
| 1 | +filter: |
| 2 | + excluded_paths: |
| 3 | + - "tests/" |
| 4 | + |
| 5 | +tools: |
| 6 | + external_code_coverage: |
| 7 | + enabled: true |
| 8 | + timeout: 900 |
| 9 | + php_analyzer: true |
| 10 | + php_cpd: false |
| 11 | + php_code_coverage: true |
| 12 | + php_code_sniffer: |
| 13 | + config: { standard: psr2 } |
| 14 | + php_cs_fixer: |
| 15 | + config: { level: psr2 } |
| 16 | + php_loc: true |
| 17 | + php_mess_detector: true |
| 18 | + php_sim: true |
| 19 | + php_pdepend: true |
| 20 | + sensiolabs_security_checker: true |
| 21 | + |
| 22 | +checks: |
| 23 | + php: |
| 24 | + verify_property_names: true |
| 25 | + verify_argument_usable_as_reference: true |
| 26 | + verify_access_scope_valid: true |
| 27 | + variable_existence: true |
| 28 | + useless_calls: true |
| 29 | + use_statement_alias_conflict: true |
| 30 | + use_self_instead_of_fqcn: true |
| 31 | + uppercase_constants: true |
| 32 | + unused_variables: true |
| 33 | + unused_properties: true |
| 34 | + unused_parameters: true |
| 35 | + unused_methods: true |
| 36 | + unreachable_code: true |
| 37 | + too_many_arguments: true |
| 38 | + symfony_request_injection: true |
| 39 | + switch_fallthrough_commented: true |
| 40 | + sql_injection_vulnerabilities: true |
| 41 | + single_namespace_per_use: true |
| 42 | + simplify_boolean_return: true |
| 43 | + side_effects_or_types: true |
| 44 | + security_vulnerabilities: true |
| 45 | + return_in_constructor: true |
| 46 | + return_doc_comments: true |
| 47 | + return_doc_comment_if_not_inferrable: true |
| 48 | + require_scope_for_properties: true |
| 49 | + require_scope_for_methods: true |
| 50 | + require_php_tag_first: true |
| 51 | + remove_extra_empty_lines: true |
| 52 | + psr2_switch_declaration: true |
| 53 | + psr2_class_declaration: true |
| 54 | + property_assignments: true |
| 55 | + properties_in_camelcaps: true |
| 56 | + prefer_while_loop_over_for_loop: true |
| 57 | + precedence_mistakes: true |
| 58 | + precedence_in_conditions: true |
| 59 | + phpunit_assertions: true |
| 60 | + php5_style_constructor: true |
| 61 | + parse_doc_comments: true |
| 62 | + parameters_in_camelcaps: true |
| 63 | + parameter_non_unique: true |
| 64 | + parameter_doc_comments: true |
| 65 | + param_doc_comment_if_not_inferrable: true |
| 66 | + overriding_private_members: true |
| 67 | + overriding_parameter: true |
| 68 | + optional_parameters_at_the_end: true |
| 69 | + one_class_per_file: true |
| 70 | + non_commented_empty_catch_block: true |
| 71 | + no_unnecessary_if: true |
| 72 | + no_unnecessary_final_modifier: true |
| 73 | + no_underscore_prefix_in_properties: true |
| 74 | + no_underscore_prefix_in_methods: true |
| 75 | + no_trait_type_hints: true |
| 76 | + no_trailing_whitespace: true |
| 77 | + no_short_variable_names: |
| 78 | + minimum: '3' |
| 79 | + no_short_open_tag: true |
| 80 | + no_short_method_names: |
| 81 | + minimum: '3' |
| 82 | + no_property_on_interface: true |
| 83 | + no_non_implemented_abstract_methods: true |
| 84 | + no_long_variable_names: |
| 85 | + maximum: '20' |
| 86 | + no_goto: true |
| 87 | + no_global_keyword: true |
| 88 | + no_exit: true |
| 89 | + no_eval: true |
| 90 | + no_error_suppression: true |
| 91 | + no_empty_statements: true |
| 92 | + no_duplicate_arguments: true |
| 93 | + no_debug_code: true |
| 94 | + no_commented_out_code: true |
| 95 | + newline_at_end_of_file: true |
| 96 | + naming_conventions: |
| 97 | + local_variable: '^[a-z][a-zA-Z0-9]*$' |
| 98 | + abstract_class_name: ^Abstract|Factory$ |
| 99 | + utility_class_name: '(Factory|Utils?)$' |
| 100 | + constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$' |
| 101 | + property_name: '^[a-z][a-zA-Z0-9]*$' |
| 102 | + method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$' |
| 103 | + parameter_name: '^[a-z][a-zA-Z0-9]*$' |
| 104 | + interface_name: '^[A-Z][a-zA-Z0-9]*Interface$' |
| 105 | + type_name: '^[A-Z][a-zA-Z0-9]*$' |
| 106 | + exception_name: '^[A-Z][a-zA-Z0-9]*Exception$' |
| 107 | + isser_method_name: '^(?:is|has|should|may|supports)' |
| 108 | + more_specific_types_in_doc_comments: true |
| 109 | + missing_arguments: true |
| 110 | + method_calls_on_non_object: true |
| 111 | + line_length: |
| 112 | + max_length: '120' |
| 113 | + instanceof_class_exists: true |
| 114 | + function_in_camel_caps: true |
| 115 | + foreach_usable_as_reference: true |
| 116 | + foreach_traversable: true |
| 117 | + fix_use_statements: |
| 118 | + remove_unused: true |
| 119 | + preserve_multiple: false |
| 120 | + preserve_blanklines: false |
| 121 | + order_alphabetically: true |
| 122 | + fix_line_ending: true |
| 123 | + fix_doc_comments: true |
| 124 | + encourage_single_quotes: true |
| 125 | + encourage_shallow_comparison: true |
| 126 | + encourage_postdec_operator: true |
| 127 | + duplication: true |
| 128 | + deprecated_code_usage: true |
| 129 | + deadlock_detection_in_loops: true |
| 130 | + custom_coding_standard: |
| 131 | + ruleset_path: ruleset.xml |
| 132 | + comparison_always_same_result: true |
| 133 | + code_rating: true |
| 134 | + closure_use_not_conflicting: true |
| 135 | + closure_use_modifiable: true |
| 136 | + classes_in_camel_caps: true |
| 137 | + check_method_contracts: |
| 138 | + verify_interface_like_constraints: true |
| 139 | + verify_documented_constraints: true |
| 140 | + verify_parent_constraints: true |
| 141 | + catch_class_exists: true |
| 142 | + call_to_parent_method: true |
| 143 | + blank_line_after_namespace_declaration: true |
| 144 | + avoid_useless_overridden_methods: true |
| 145 | + avoid_usage_of_logical_operators: true |
| 146 | + avoid_unnecessary_concatenation: true |
| 147 | + avoid_todo_comments: true |
| 148 | + avoid_superglobals: true |
| 149 | + avoid_perl_style_comments: true |
| 150 | + avoid_multiple_statements_on_same_line: true |
| 151 | + avoid_length_functions_in_loops: true |
| 152 | + avoid_fixme_comments: true |
| 153 | + avoid_entity_manager_injection: true |
| 154 | + avoid_duplicate_types: true |
| 155 | + avoid_corrupting_byteorder_marks: true |
| 156 | + avoid_conflicting_incrementers: true |
| 157 | + avoid_closing_tag: true |
| 158 | + avoid_aliased_php_functions: true |
| 159 | + assignment_of_null_return: true |
| 160 | + argument_type_checks: true |
| 161 | + align_assignments: true |
0 commit comments