Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 29e9439

Browse files
update scrutinizer config
1 parent 9d0cb32 commit 29e9439

File tree

1 file changed

+107
-5
lines changed

1 file changed

+107
-5
lines changed

.scrutinizer.yml

Lines changed: 107 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,117 @@
1+
language: php
2+
tests: true
3+
filter:
4+
excluded_paths:
5+
- 'tests/*'
6+
- 'vendor/*'
17
build:
28
nodes:
39
analysis:
410
tests:
511
override:
612
- php-scrutinizer-run
7-
filter:
8-
excluded_paths:
9-
- 'tests/*'
10-
- 'vendor/*'
1113
checks:
12-
php: true
14+
php:
15+
verify_property_names: true
16+
verify_argument_usable_as_reference: true
17+
verify_access_scope_valid: true
18+
variable_existence: true
19+
useless_calls: true
20+
use_statement_alias_conflict: true
21+
unused_variables: true
22+
unused_properties: true
23+
unused_parameters: true
24+
unused_methods: true
25+
unreachable_code: true
26+
too_many_arguments: true
27+
symfony_request_injection: true
28+
switch_fallthrough_commented: true
29+
sql_injection_vulnerabilities: true
30+
security_vulnerabilities: true
31+
return_in_constructor: true
32+
require_scope_for_methods: true
33+
require_php_tag_first: true
34+
property_assignments: true
35+
precedence_mistakes: true
36+
precedence_in_conditions: true
37+
parse_doc_comments: true
38+
parameter_non_unique: true
39+
overriding_private_members: true
40+
overriding_parameter: true
41+
non_commented_empty_catch_block: true
42+
no_trait_type_hints: true
43+
no_trailing_whitespace: true
44+
no_short_open_tag: true
45+
no_property_on_interface: true
46+
no_non_implemented_abstract_methods: true
47+
no_exit: true
48+
no_eval: true
49+
no_error_suppression: true
50+
no_debug_code: true
51+
missing_arguments: true
52+
method_calls_on_non_object: true
53+
instanceof_class_exists: true
54+
foreach_usable_as_reference: true
55+
foreach_traversable: true
56+
fix_doc_comments: true
57+
encourage_shallow_comparison: true
58+
duplication: true
59+
deprecated_code_usage: true
60+
deadlock_detection_in_loops: true
61+
comparison_always_same_result: true
62+
code_rating: true
63+
closure_use_not_conflicting: true
64+
closure_use_modifiable: true
65+
catch_class_exists: true
66+
call_to_parent_method: true
67+
avoid_superglobals: true
68+
avoid_length_functions_in_loops: true
69+
avoid_entity_manager_injection: true
70+
avoid_duplicate_types: true
71+
avoid_closing_tag: true
72+
assignment_of_null_return: true
73+
argument_type_checks: true
74+
simplify_boolean_return: true
75+
return_doc_comments: true
76+
return_doc_comment_if_not_inferrable: true
77+
remove_extra_empty_lines: true
78+
properties_in_camelcaps: true
79+
phpunit_assertions: true
80+
parameters_in_camelcaps: true
81+
parameter_doc_comments: true
82+
param_doc_comment_if_not_inferrable: true
83+
no_short_variable_names:
84+
minimum: '3'
85+
no_short_method_names:
86+
minimum: '3'
87+
no_long_variable_names:
88+
maximum: '20'
89+
no_goto: true
90+
naming_conventions:
91+
local_variable: '^[a-z][a-zA-Z0-9]*$'
92+
abstract_class_name: ^Abstract|Factory$
93+
utility_class_name: 'Utils?$'
94+
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
95+
property_name: '^[a-z][a-zA-Z0-9]*$'
96+
method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$'
97+
parameter_name: '^[a-z][a-zA-Z0-9]*$'
98+
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
99+
type_name: '^[A-Z][a-zA-Z0-9]*$'
100+
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
101+
isser_method_name: '^(?:is|has|should|may|supports)'
102+
more_specific_types_in_doc_comments: true
103+
fix_use_statements:
104+
remove_unused: true
105+
preserve_multiple: false
106+
preserve_blanklines: false
107+
order_alphabetically: false
108+
fix_line_ending: true
109+
check_method_contracts:
110+
verify_interface_like_constraints: true
111+
verify_documented_constraints: true
112+
verify_parent_constraints: true
113+
coding_style:
114+
php: { }
13115
before_commands:
14116
- 'composer install --dev --prefer-source'
15117
tools:

0 commit comments

Comments
 (0)