|
| 1 | +tools: |
| 2 | + external_code_coverage: true |
| 3 | + php_sim: true |
| 4 | + php_pdepend: true |
| 5 | + php_analyzer: true |
| 6 | + |
| 7 | +checks: |
| 8 | + php: |
| 9 | + code_rating: true |
| 10 | + duplication: true |
| 11 | + variable_existence: true |
| 12 | + useless_calls: true |
| 13 | + use_statement_alias_conflict: true |
| 14 | + unused_variables: true |
| 15 | + unused_properties: true |
| 16 | + unused_parameters: true |
| 17 | + unused_methods: true |
| 18 | + unreachable_code: true |
| 19 | + sql_injection_vulnerabilities: true |
| 20 | + security_vulnerabilities: true |
| 21 | + precedence_mistakes: true |
| 22 | + precedence_in_conditions: true |
| 23 | + parameter_non_unique: true |
| 24 | + no_property_on_interface: true |
| 25 | + no_non_implemented_abstract_methods: true |
| 26 | + deprecated_code_usage: true |
| 27 | + closure_use_not_conflicting: true |
| 28 | + closure_use_modifiable: true |
| 29 | + avoid_useless_overridden_methods: true |
| 30 | + avoid_conflicting_incrementers: true |
| 31 | + assignment_of_null_return: true |
| 32 | + verify_access_scope_valid: true |
| 33 | + uppercase_constants: true |
| 34 | + too_many_arguments: true |
| 35 | + spacing_of_function_arguments: true |
| 36 | + spacing_around_non_conditional_operators: true |
| 37 | + spacing_around_conditional_operators: true |
| 38 | + argument_type_checks: true |
| 39 | + avoid_closing_tag: true |
| 40 | + avoid_corrupting_byteorder_marks: true |
| 41 | + avoid_duplicate_types: true |
| 42 | + avoid_fixme_comments: true |
| 43 | + avoid_multiple_statements_on_same_line: true |
| 44 | + avoid_perl_style_comments: true |
| 45 | + avoid_tab_indentation: true |
| 46 | + avoid_todo_comments: true |
| 47 | + avoid_usage_of_logical_operators: true |
| 48 | + catch_class_exists: true |
| 49 | + encourage_single_quotes: true |
| 50 | + lowercase_basic_constants: true |
| 51 | + space_after_cast: true |
| 52 | + no_space_before_semicolon: true |
| 53 | + no_space_around_object_operator: true |
| 54 | + blank_line_after_namespace_declaration: true |
| 55 | + verify_property_names: true |
| 56 | + verify_argument_usable_as_reference: true |
| 57 | + switch_fallthrough_commented: true |
| 58 | + single_namespace_per_use: true |
| 59 | + simplify_boolean_return: true |
| 60 | + side_effects_or_types: true |
| 61 | + scope_indentation: |
| 62 | + spaces_per_level: '4' |
| 63 | + return_doc_comments: true |
| 64 | + return_doc_comment_if_not_inferrable: true |
| 65 | + require_scope_for_properties: true |
| 66 | + require_scope_for_methods: true |
| 67 | + require_php_tag_first: true |
| 68 | + require_braces_around_control_structures: true |
| 69 | + psr2_switch_declaration: true |
| 70 | + psr2_control_structure_declaration: true |
| 71 | + psr2_class_declaration: true |
| 72 | + property_assignments: true |
| 73 | + properties_in_camelcaps: true |
| 74 | + prefer_unix_line_ending: true |
| 75 | + prefer_sapi_constant: true |
| 76 | + phpunit_assertions: true |
| 77 | + php5_style_constructor: true |
| 78 | + parameters_in_camelcaps: true |
| 79 | + parameter_doc_comments: true |
| 80 | + param_doc_comment_if_not_inferrable: true |
| 81 | + overriding_private_members: true |
| 82 | + optional_parameters_at_the_end: true |
| 83 | + one_class_per_file: true |
| 84 | + non_commented_empty_catch_block: true |
| 85 | + no_unnecessary_if: true |
| 86 | + no_unnecessary_function_call_in_for_loop: true |
| 87 | + no_unnecessary_final_modifier: true |
| 88 | + no_underscore_prefix_in_properties: true |
| 89 | + no_underscore_prefix_in_methods: true |
| 90 | + no_trailing_whitespace: true |
| 91 | + no_space_inside_cast_operator: true |
| 92 | + no_short_variable_names: |
| 93 | + minimum: '3' |
| 94 | + no_short_open_tag: true |
| 95 | + no_short_method_names: |
| 96 | + minimum: '5' |
| 97 | + no_long_variable_names: |
| 98 | + maximum: '25' |
| 99 | + no_goto: true |
| 100 | + no_global_keyword: true |
| 101 | + no_exit: true |
| 102 | + no_eval: true |
| 103 | + no_error_suppression: true |
| 104 | + no_empty_statements: true |
| 105 | + no_else_if_statements: true |
| 106 | + no_duplicate_arguments: true |
| 107 | + no_debug_code: true |
| 108 | + no_commented_out_code: true |
| 109 | + newline_at_end_of_file: true |
| 110 | + naming_conventions: |
| 111 | + local_variable: '^[a-z][a-zA-Z0-9]*$' |
| 112 | + abstract_class_name: ^Abstract|Factory$ |
| 113 | + utility_class_name: 'Utils?$' |
| 114 | + constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$' |
| 115 | + property_name: '^[a-z][a-zA-Z0-9]*$' |
| 116 | + method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$' |
| 117 | + parameter_name: '^[a-z][a-zA-Z0-9]*$' |
| 118 | + interface_name: '^[A-Z][a-zA-Z0-9]*Interface$' |
| 119 | + type_name: '^[A-Z][a-zA-Z0-9]*$' |
| 120 | + exception_name: '^[A-Z][a-zA-Z0-9]*Exception$' |
| 121 | + isser_method_name: '^(?:is|has|should|may|supports)' |
| 122 | + more_specific_types_in_doc_comments: true |
| 123 | + missing_arguments: true |
| 124 | + method_calls_on_non_object: true |
| 125 | + lowercase_php_keywords: true |
| 126 | + instanceof_class_exists: true |
| 127 | + function_in_camel_caps: true |
| 128 | + function_body_start_on_new_line: true |
| 129 | + foreach_usable_as_reference: true |
| 130 | + foreach_traversable: true |
| 131 | + ensure_lower_case_builtin_functions: true |
| 132 | + deadlock_detection_in_loops: true |
| 133 | + classes_in_camel_caps: true |
| 134 | + avoid_superglobals: true |
| 135 | + avoid_length_functions_in_loops: true |
| 136 | + avoid_entity_manager_injection: true |
| 137 | + |
| 138 | +coding_style: |
| 139 | + php: |
| 140 | + indentation: |
| 141 | + general: |
| 142 | + use_tabs: false |
| 143 | + size: 4 |
| 144 | + switch: |
| 145 | + indent_case: true |
| 146 | + spaces: |
| 147 | + before_parentheses: |
| 148 | + function_declaration: false |
| 149 | + closure_definition: false |
| 150 | + function_call: false |
| 151 | + if: true |
| 152 | + for: true |
| 153 | + while: true |
| 154 | + switch: true |
| 155 | + catch: true |
| 156 | + array_initializer: false |
| 157 | + around_operators: |
| 158 | + assignment: true |
| 159 | + logical: true |
| 160 | + equality: true |
| 161 | + relational: true |
| 162 | + bitwise: true |
| 163 | + additive: true |
| 164 | + multiplicative: true |
| 165 | + shift: true |
| 166 | + unary_additive: false |
| 167 | + concatenation: true |
| 168 | + negation: false |
| 169 | + before_left_brace: |
| 170 | + class: true |
| 171 | + function: true |
| 172 | + if: true |
| 173 | + else: true |
| 174 | + for: true |
| 175 | + while: true |
| 176 | + do: true |
| 177 | + switch: true |
| 178 | + try: true |
| 179 | + catch: true |
| 180 | + finally: true |
| 181 | + before_keywords: |
| 182 | + else: true |
| 183 | + while: true |
| 184 | + catch: true |
| 185 | + finally: true |
| 186 | + within: |
| 187 | + brackets: false |
| 188 | + array_initializer: false |
| 189 | + grouping: false |
| 190 | + function_call: false |
| 191 | + function_declaration: false |
| 192 | + if: false |
| 193 | + for: false |
| 194 | + while: false |
| 195 | + switch: false |
| 196 | + catch: false |
| 197 | + type_cast: false |
| 198 | + ternary_operator: |
| 199 | + before_condition: true |
| 200 | + after_condition: true |
| 201 | + before_alternative: true |
| 202 | + after_alternative: true |
| 203 | + in_short_version: false |
| 204 | + other: |
| 205 | + before_comma: false |
| 206 | + after_comma: true |
| 207 | + before_semicolon: false |
| 208 | + after_semicolon: true |
| 209 | + after_type_cast: true |
| 210 | + braces: |
| 211 | + classes_functions: |
| 212 | + class: new-line |
| 213 | + function: new-line |
| 214 | + closure: undefined |
| 215 | + if: |
| 216 | + opening: end-of-line |
| 217 | + always: true |
| 218 | + else_on_new_line: false |
| 219 | + for: |
| 220 | + opening: end-of-line |
| 221 | + always: true |
| 222 | + while: |
| 223 | + opening: end-of-line |
| 224 | + always: true |
| 225 | + do_while: |
| 226 | + opening: end-of-line |
| 227 | + always: true |
| 228 | + while_on_new_line: false |
| 229 | + switch: |
| 230 | + opening: end-of-line |
| 231 | + try: |
| 232 | + opening: end-of-line |
| 233 | + catch_on_new_line: false |
| 234 | + finally_on_new_line: false |
| 235 | + |
0 commit comments