Skip to content

Commit f8bfaa9

Browse files
committed
Merge pull request #567 from lucadegasperi/scrutinizer
Update scrutinizer config
2 parents 4178861 + 9d81656 commit f8bfaa9

File tree

1 file changed

+162
-16
lines changed

1 file changed

+162
-16
lines changed

.scrutinizer.yml

Lines changed: 162 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,163 @@
1-
# .scrutinizer.yml
2-
tools:
3-
external_code_coverage: true
41
filter:
5-
excluded_paths:
6-
- 'vendor/*'
7-
- 'tests/*'
8-
- 'spec/*'
9-
- 'app/*'
10-
- 'bin/*'
11-
- 'library/*'
12-
- 'src/migrations/*'
13-
- 'config/*'
14-
- 'seeds/*'
15-
- 'stubs/*'
16-
imports:
17-
- php
2+
paths:
3+
- 'app/*'
4+
- 'src/*'
5+
excluded_paths:
6+
- 'bootstrap/*'
7+
- 'config/*'
8+
- 'public/*'
9+
- 'resources/*'
10+
- 'vendor/*'
11+
- 'views/*'
12+
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+
external_code_coverage:
27+
timeout: '3600'
28+
runs: 3
29+
30+
checks:
31+
php:
32+
code_rating: true
33+
duplication: true
34+
variable_existence: true
35+
useless_calls: true
36+
use_statement_alias_conflict: true
37+
unused_variables: true
38+
unused_properties: true
39+
unused_parameters: true
40+
unused_methods: true
41+
unreachable_code: true
42+
sql_injection_vulnerabilities: 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_property_names: true
56+
verify_argument_usable_as_reference: true
57+
verify_access_scope_valid: true
58+
use_self_instead_of_fqcn: true
59+
too_many_arguments: true
60+
symfony_request_injection: true
61+
switch_fallthrough_commented: true
62+
spacing_of_function_arguments: true
63+
spacing_around_non_conditional_operators: true
64+
spacing_around_conditional_operators: true
65+
space_after_cast: true
66+
single_namespace_per_use: true
67+
simplify_boolean_return: true
68+
scope_indentation:
69+
spaces_per_level: '4'
70+
return_doc_comments: true
71+
require_scope_for_properties: true
72+
require_scope_for_methods: true
73+
require_php_tag_first: true
74+
require_braces_around_control_structures: true
75+
remove_trailing_whitespace: true
76+
remove_php_closing_tag: true
77+
remove_extra_empty_lines: true
78+
psr2_switch_declaration: true
79+
psr2_control_structure_declaration: true
80+
psr2_class_declaration: true
81+
property_assignments: true
82+
properties_in_camelcaps: true
83+
prefer_while_loop_over_for_loop: true
84+
phpunit_assertions: true
85+
php5_style_constructor: true
86+
parameters_in_camelcaps: true
87+
parameter_doc_comments: true
88+
return_doc_comment_if_not_inferrable: true
89+
param_doc_comment_if_not_inferrable: true
90+
overriding_private_members: true
91+
optional_parameters_at_the_end: true
92+
one_class_per_file: true
93+
non_commented_empty_catch_block: true
94+
no_unnecessary_if: true
95+
no_unnecessary_function_call_in_for_loop: true
96+
no_unnecessary_final_modifier: true
97+
no_underscore_prefix_in_properties: true
98+
no_underscore_prefix_in_methods: true
99+
no_trailing_whitespace: true
100+
no_space_inside_cast_operator: true
101+
no_space_before_semicolon: true
102+
no_space_around_object_operator: true
103+
no_goto: true
104+
no_global_keyword: true
105+
no_exit: true
106+
no_empty_statements: true
107+
no_else_if_statements: true
108+
no_duplicate_arguments: true
109+
no_debug_code: true
110+
no_commented_out_code: true
111+
newline_at_end_of_file: true
112+
naming_conventions:
113+
local_variable: '^[a-z][a-zA-Z0-9]*$'
114+
abstract_class_name: ^Abstract|Factory$
115+
utility_class_name: 'Utils?$'
116+
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
117+
property_name: '^[a-z][a-zA-Z0-9]*$'
118+
method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$'
119+
parameter_name: '^[a-z][a-zA-Z0-9]*$'
120+
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
121+
type_name: '^[A-Z][a-zA-Z0-9]*$'
122+
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
123+
isser_method_name: '^(?:is|has|should|may|supports|was)'
124+
lowercase_php_keywords: true
125+
more_specific_types_in_doc_comments: true
126+
missing_arguments: true
127+
method_calls_on_non_object: true
128+
line_length:
129+
max_length: '120'
130+
lowercase_basic_constants: true
131+
instanceof_class_exists: true
132+
function_in_camel_caps: true
133+
function_body_start_on_new_line: true
134+
fix_use_statements:
135+
remove_unused: true
136+
preserve_multiple: false
137+
preserve_blanklines: false
138+
order_alphabetically: true
139+
foreach_traversable: true
140+
foreach_usable_as_reference: true
141+
fix_php_opening_tag: true
142+
fix_line_ending: true
143+
fix_identation_4spaces: true
144+
fix_doc_comments: true
145+
ensure_lower_case_builtin_functions: true
146+
encourage_postdec_operator: true
147+
classes_in_camel_caps: true
148+
catch_class_exists: true
149+
blank_line_after_namespace_declaration: true
150+
avoid_usage_of_logical_operators: true
151+
avoid_unnecessary_concatenation: true
152+
avoid_tab_indentation: true
153+
avoid_superglobals: true
154+
avoid_perl_style_comments: true
155+
avoid_multiple_statements_on_same_line: true
156+
avoid_fixme_comments: true
157+
avoid_length_functions_in_loops: true
158+
avoid_entity_manager_injection: true
159+
avoid_duplicate_types: true
160+
avoid_corrupting_byteorder_marks: true
161+
argument_type_checks: true
162+
avoid_aliased_php_functions: true
163+
deadlock_detection_in_loops: true

0 commit comments

Comments
 (0)