|
| 1 | +filter: |
| 2 | + excluded_paths: |
| 3 | + - tests/* |
| 4 | +build: |
| 5 | + environment: |
| 6 | + php: 7.0 |
| 7 | + cache: |
| 8 | + disabled: false |
| 9 | + directories: |
| 10 | + - ~/.composer/cache |
| 11 | + - tmp/ |
| 12 | + - vendor/ |
| 13 | + dependencies: |
| 14 | + override: |
| 15 | + - composer self-update |
| 16 | + - composer update --with-dependencies -v -o |
| 17 | + tests: |
| 18 | + override: |
| 19 | + #- jshint-run $(ls public_html/js/*.js) |
| 20 | + #- shellcheck-run -s bash $(ls scripts/*/*.sh) |
| 21 | + #- csslint-run --exclude-list=public_html/css/domains.css,public_html/css/minified,public_html/css/reset.css,public_html/css/price_win.css public_html/css |
| 22 | + - |
| 23 | + command: 'vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v --coverage-clover coverage.xml --whitelist src/' |
| 24 | + #command: 'phpdbg -qrr vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ -v --coverage-clover coverage.xml --whitelist src/' |
| 25 | + coverage: |
| 26 | + file: 'coverage.xml' |
| 27 | + format: 'clover' |
| 28 | +checks: |
| 29 | + php: |
| 30 | + duplication: true |
| 31 | + uppercase_constants: true |
| 32 | + return_doc_comment_if_not_inferrable: true |
| 33 | + return_doc_comments: true |
| 34 | + remove_extra_empty_lines: true |
| 35 | + phpunit_assertions: true |
| 36 | + avoid_fixme_comments: true |
| 37 | + param_doc_comment_if_not_inferrable: true |
| 38 | + parameter_doc_comments: true |
| 39 | + simplify_boolean_return: true |
| 40 | + remove_extra_empty_lines: true |
| 41 | + property_assignments: true |
| 42 | + properties_in_camelcaps: true |
| 43 | + precedence_mistakes: true |
| 44 | + precedence_in_conditions: true |
| 45 | + phpunit_assertions: true |
| 46 | + php5_style_constructor: true |
| 47 | + parse_doc_comments: true |
| 48 | + parameters_in_camelcaps: true |
| 49 | + parameter_doc_comments: true |
| 50 | + param_doc_comment_if_not_inferrable: true |
| 51 | + one_class_per_file: true |
| 52 | + non_commented_empty_catch_block: true |
| 53 | + no_unnecessary_if: true |
| 54 | + no_trailing_whitespace: true |
| 55 | + no_short_open_tag: true |
| 56 | + no_non_implemented_abstract_methods: true |
| 57 | + no_goto: true |
| 58 | + no_long_variable_names: |
| 59 | + maximum: '25' |
| 60 | + more_specific_types_in_doc_comments: true |
| 61 | + missing_arguments: true |
| 62 | + instanceof_class_exists: true |
| 63 | + fix_use_statements: |
| 64 | + remove_unused: true |
| 65 | + preserve_multiple: false |
| 66 | + preserve_blanklines: false |
| 67 | + order_alphabetically: true |
| 68 | + fix_doc_comments: true |
| 69 | + encourage_shallow_comparison: true |
| 70 | + deprecated_code_usage: true |
| 71 | + deadlock_detection_in_loops: true |
| 72 | + comparison_always_same_result: true |
| 73 | + code_rating: true |
| 74 | + blank_line_after_namespace_declaration: true |
| 75 | + avoid_usage_of_logical_operators: true |
| 76 | + avoid_perl_style_comments: true |
| 77 | + avoid_fixme_comments: true |
| 78 | + avoid_duplicate_types: true |
| 79 | + avoid_corrupting_byteorder_marks: true |
| 80 | + avoid_closing_tag: true |
| 81 | + argument_type_checks: true |
| 82 | +coding_style: |
| 83 | + php: |
| 84 | + indentation: |
| 85 | + general: |
| 86 | + use_tabs: true |
| 87 | + size: 4 |
| 88 | + switch: |
| 89 | + indent_case: true |
| 90 | + spaces: |
| 91 | + general: |
| 92 | + linefeed_character: newline |
| 93 | + before_parentheses: |
| 94 | + function_declaration: false |
| 95 | + closure_definition: false |
| 96 | + function_call: false |
| 97 | + if: true |
| 98 | + for: true |
| 99 | + while: true |
| 100 | + switch: true |
| 101 | + catch: true |
| 102 | + array_initializer: false |
| 103 | + around_operators: |
| 104 | + assignment: true |
| 105 | + logical: true |
| 106 | + equality: true |
| 107 | + relational: true |
| 108 | + bitwise: true |
| 109 | + additive: true |
| 110 | + multiplicative: true |
| 111 | + shift: true |
| 112 | + unary_additive: false |
| 113 | + concatenation: false |
| 114 | + negation: false |
| 115 | + before_left_brace: |
| 116 | + class: true |
| 117 | + function: true |
| 118 | + if: true |
| 119 | + else: true |
| 120 | + for: true |
| 121 | + while: true |
| 122 | + do: true |
| 123 | + switch: true |
| 124 | + try: true |
| 125 | + catch: true |
| 126 | + finally: true |
| 127 | + before_keywords: |
| 128 | + else: true |
| 129 | + while: true |
| 130 | + catch: true |
| 131 | + finally: true |
| 132 | + within: |
| 133 | + brackets: false |
| 134 | + array_initializer: false |
| 135 | + grouping: false |
| 136 | + function_call: false |
| 137 | + function_declaration: false |
| 138 | + if: false |
| 139 | + for: false |
| 140 | + while: false |
| 141 | + switch: false |
| 142 | + catch: false |
| 143 | + type_cast: false |
| 144 | + ternary_operator: |
| 145 | + before_condition: true |
| 146 | + after_condition: true |
| 147 | + before_alternative: true |
| 148 | + after_alternative: true |
| 149 | + in_short_version: false |
| 150 | + other: |
| 151 | + before_comma: false |
| 152 | + after_comma: true |
| 153 | + before_semicolon: false |
| 154 | + after_semicolon: true |
| 155 | + after_type_cast: true |
| 156 | + braces: |
| 157 | + classes_functions: |
| 158 | + class: end-of-line |
| 159 | + function: end-of-line |
| 160 | + closure: end-of-line |
| 161 | + if: |
| 162 | + opening: end-of-line |
| 163 | + always: false |
| 164 | + else_on_new_line: false |
| 165 | + for: |
| 166 | + opening: end-of-line |
| 167 | + always: false |
| 168 | + while: |
| 169 | + opening: end-of-line |
| 170 | + always: false |
| 171 | + do_while: |
| 172 | + opening: end-of-line |
| 173 | + always: false |
| 174 | + while_on_new_line: false |
| 175 | + switch: |
| 176 | + opening: end-of-line |
| 177 | + try: |
| 178 | + opening: end-of-line |
| 179 | + catch_on_new_line: false |
| 180 | + finally_on_new_line: false |
| 181 | + upper_lower_casing: |
| 182 | + keywords: |
| 183 | + general: lower |
| 184 | + constants: |
| 185 | + true_false_null: upper |
0 commit comments