1
1
filter :
2
2
paths :
3
- - ' app/*'
4
3
- ' src/*'
5
- excluded_paths :
6
- - ' bootstrap/*'
7
- - ' config/*'
8
- - ' public/*'
9
- - ' resources/*'
10
- - ' vendor/*'
11
- - ' views/*'
4
+ - ' tests/*'
5
+
12
6
tools :
13
- php_analyzer : true
14
- php_mess_detector : true
15
- php_changetracking : true
16
- php_code_sniffer :
17
- config :
18
- standard : PSR2
19
- php_loc :
20
- excluded_dirs :
21
- - vendor
22
- php_pdepend :
23
- excluded_dirs :
24
- - vendor
25
- - tests
26
- checks :
27
- php :
28
- code_rating : true
29
- duplication : true
30
- variable_existence : true
31
- useless_calls : true
32
- use_statement_alias_conflict : true
33
- unused_variables : true
34
- unused_properties : true
35
- unused_parameters : true
36
- unused_methods : true
37
- unreachable_code : true
38
- sql_injection_vulnerabilities : true
39
- security_vulnerabilities : true
40
- precedence_mistakes : true
41
- precedence_in_conditions : true
42
- parameter_non_unique : true
43
- no_property_on_interface : true
44
- no_non_implemented_abstract_methods : true
45
- deprecated_code_usage : true
46
- closure_use_not_conflicting : true
47
- closure_use_modifiable : true
48
- avoid_useless_overridden_methods : true
49
- avoid_conflicting_incrementers : true
50
- assignment_of_null_return : true
51
- verify_property_names : true
52
- verify_argument_usable_as_reference : true
53
- verify_access_scope_valid : true
54
- use_self_instead_of_fqcn : true
55
- too_many_arguments : true
56
- symfony_request_injection : true
57
- switch_fallthrough_commented : true
58
- spacing_of_function_arguments : true
59
- spacing_around_non_conditional_operators : true
60
- spacing_around_conditional_operators : true
61
- space_after_cast : true
62
- single_namespace_per_use : true
63
- simplify_boolean_return : true
64
- scope_indentation :
65
- spaces_per_level : ' 4'
66
- return_doc_comments : true
67
- require_scope_for_properties : true
68
- require_scope_for_methods : true
69
- require_php_tag_first : true
70
- require_braces_around_control_structures : true
71
- remove_trailing_whitespace : true
72
- remove_php_closing_tag : true
73
- remove_extra_empty_lines : true
74
- psr2_switch_declaration : true
75
- psr2_control_structure_declaration : true
76
- psr2_class_declaration : true
77
- property_assignments : true
78
- properties_in_camelcaps : true
79
- prefer_while_loop_over_for_loop : true
80
- phpunit_assertions : true
81
- php5_style_constructor : true
82
- parameters_in_camelcaps : true
83
- parameter_doc_comments : true
84
- return_doc_comment_if_not_inferrable : true
85
- param_doc_comment_if_not_inferrable : true
86
- overriding_private_members : true
87
- optional_parameters_at_the_end : true
88
- one_class_per_file : true
89
- non_commented_empty_catch_block : true
90
- no_unnecessary_if : true
91
- no_unnecessary_function_call_in_for_loop : true
92
- no_unnecessary_final_modifier : true
93
- no_underscore_prefix_in_properties : true
94
- no_underscore_prefix_in_methods : true
95
- no_trailing_whitespace : true
96
- no_space_inside_cast_operator : true
97
- no_space_before_semicolon : true
98
- no_space_around_object_operator : true
99
- no_goto : true
100
- no_global_keyword : true
101
- no_exit : true
102
- no_empty_statements : true
103
- no_else_if_statements : true
104
- no_duplicate_arguments : true
105
- no_debug_code : true
106
- no_commented_out_code : true
107
- newline_at_end_of_file : true
108
- naming_conventions :
109
- local_variable : ' ^[a-z][a-zA-Z0-9]*$'
110
- abstract_class_name : ^Abstract|Factory$
111
- utility_class_name : ' Utils?$'
112
- constant_name : ' ^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
113
- property_name : ' ^[a-z][a-zA-Z0-9]*$'
114
- method_name : ' ^(?:[a-z]|__)[a-zA-Z0-9]*$'
115
- parameter_name : ' ^[a-z][a-zA-Z0-9]*$'
116
- interface_name : ' ^[A-Z][a-zA-Z0-9]*Interface$'
117
- type_name : ' ^[A-Z][a-zA-Z0-9]*$'
118
- exception_name : ' ^[A-Z][a-zA-Z0-9]*Exception$'
119
- isser_method_name : ' ^(?:is|has|should|may|supports|was)'
120
- lowercase_php_keywords : true
121
- more_specific_types_in_doc_comments : true
122
- missing_arguments : true
123
- method_calls_on_non_object : true
124
- line_length :
125
- max_length : ' 120'
126
- lowercase_basic_constants : true
127
- instanceof_class_exists : true
128
- function_in_camel_caps : true
129
- function_body_start_on_new_line : true
130
- fix_use_statements :
131
- remove_unused : true
132
- preserve_multiple : false
133
- preserve_blanklines : false
134
- order_alphabetically : true
135
- foreach_traversable : true
136
- foreach_usable_as_reference : true
137
- fix_php_opening_tag : true
138
- fix_line_ending : true
139
- fix_identation_4spaces : true
140
- fix_doc_comments : true
141
- ensure_lower_case_builtin_functions : true
142
- encourage_postdec_operator : true
143
- classes_in_camel_caps : true
144
- catch_class_exists : true
145
- blank_line_after_namespace_declaration : true
146
- avoid_usage_of_logical_operators : true
147
- avoid_unnecessary_concatenation : true
148
- avoid_tab_indentation : true
149
- avoid_superglobals : true
150
- avoid_perl_style_comments : true
151
- avoid_multiple_statements_on_same_line : true
152
- avoid_fixme_comments : true
153
- avoid_length_functions_in_loops : true
154
- avoid_entity_manager_injection : true
155
- avoid_duplicate_types : true
156
- avoid_corrupting_byteorder_marks : true
157
- argument_type_checks : true
158
- avoid_aliased_php_functions : true
159
- deadlock_detection_in_loops : true
7
+ php_cs_fixer :
8
+ config : { level: psr2 }
9
+
10
+ build :
11
+ nodes :
12
+ analysis :
13
+ tests :
14
+ override :
15
+ - php-scrutinizer-run
16
+ coverage :
17
+ tests :
18
+ override :
19
+ - command : vendor/bin/phpunit --coverage-clover=clover.xml
20
+ coverage :
21
+ file : clover.xml
22
+ format : clover
0 commit comments