Yaffs site version 1.1
[yaffs-website] / vendor / caxy / php-htmldiff / .scrutinizer.yml
1 imports:
2     - php
3 tools:
4     js_hint: true
5     php_code_sniffer: true
6     php_cs_fixer:
7         config: { level: psr2 }
8         enabled: true
9 build:
10     tests:
11         override:
12             -
13                 command: 'vendor/bin/phpunit --coverage-clover=code-coverage-file'
14                 coverage:
15                     file: 'code-coverage-file'
16                     format: 'php-clover'
17 filter:
18     excluded_paths:
19         - tests/*
20 checks:
21     php:
22         uppercase_constants: true
23         unused_variables: true
24         unreachable_code: true
25         unused_methods: true
26         sql_injection_vulnerabilities: true
27         spacing_of_function_arguments: true
28         spacing_around_non_conditional_operators: true
29         spacing_around_conditional_operators: true
30         too_many_arguments: true
31         return_doc_comments: true
32         require_scope_for_properties: true
33         require_scope_for_methods: true
34         require_braces_around_control_structures: true
35         psr2_control_structure_declaration: true
36         code_rating: true
37         duplication: true
38         variable_existence: true
39         useless_calls: true
40         use_statement_alias_conflict: true
41         unused_properties: true
42         unused_parameters: true
43         security_vulnerabilities: true
44         precedence_mistakes: true
45         precedence_in_conditions: true
46         parameter_non_unique: true
47         no_property_on_interface: true
48         no_non_implemented_abstract_methods: true
49         deprecated_code_usage: true
50         closure_use_not_conflicting: true
51         closure_use_modifiable: true
52         avoid_useless_overridden_methods: true
53         avoid_conflicting_incrementers: true
54         assignment_of_null_return: true
55         verify_access_scope_valid: true
56         symfony_request_injection: true
57         simplify_boolean_return: true
58         side_effects_or_types: true
59         scope_indentation:
60             spaces_per_level: '4'
61         return_doc_comment_if_not_inferrable: true
62         remove_trailing_whitespace: true
63         remove_php_closing_tag: true
64         remove_extra_empty_lines: true
65         psr2_switch_declaration: true
66         psr2_class_declaration: true
67         property_assignments: true
68         properties_in_camelcaps: true
69         phpunit_assertions: true
70         php5_style_constructor: true
71         parameters_in_camelcaps: true
72         parameter_doc_comments: true
73         param_doc_comment_if_not_inferrable: true
74         overriding_private_members: true
75         one_class_per_file: true
76         optional_parameters_at_the_end: true
77         non_commented_empty_catch_block: true
78         no_unnecessary_if: true
79         no_unnecessary_function_call_in_for_loop: true
80         no_space_inside_cast_operator: true
81         no_space_before_semicolon: true
82         no_space_around_object_operator: true
83         no_short_open_tag: true
84         no_short_method_names:
85             minimum: '3'
86         no_goto: true
87         no_global_keyword: true
88         no_exit: true
89         no_eval: true
90         no_long_variable_names:
91             maximum: '40'
92         no_empty_statements: true
93         no_error_suppression: true
94         no_else_if_statements: true
95         no_duplicate_arguments: true
96         no_debug_code: true
97         no_commented_out_code: true
98         missing_arguments: true
99         method_calls_on_non_object: true
100         lowercase_php_keywords: true
101         lowercase_basic_constants: true
102         instanceof_class_exists: true
103         function_in_camel_caps: true
104         fix_use_statements:
105             remove_unused: true
106             preserve_multiple: false
107             preserve_blanklines: false
108             order_alphabetically: true
109         fix_identation_4spaces: true
110         ensure_lower_case_builtin_functions: true
111         fix_doc_comments: true
112         avoid_unnecessary_concatenation: true
113         avoid_entity_manager_injection: true
114         avoid_closing_tag: true
115         require_php_tag_first: true
116         line_length:
117             max_length: '120'
118         function_body_start_on_new_line: true
119         fix_php_opening_tag: true
120         fix_linefeed: true
121         classes_in_camel_caps: true
122         catch_class_exists: true
123         avoid_tab_indentation: true
124         avoid_superglobals: true
125         avoid_multiple_statements_on_same_line: true
126         avoid_length_functions_in_loops: true
127         avoid_duplicate_types: true
128         avoid_corrupting_byteorder_marks: true
129         argument_type_checks: true
130         no_underscore_prefix_in_properties: true
131         no_underscore_prefix_in_methods: true
132         blank_line_after_namespace_declaration: true
133         verify_argument_usable_as_reference: true