-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scrutinizer.yml
101 lines (98 loc) · 2.62 KB
/
.scrutinizer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
build:
environment:
php: '7.0.0'
dependencies:
override:
- 'composer install'
tests:
override:
-
command: 'vendor/bin/phpunit --exclude-group=platform-windows'
coverage:
file: 'tmp/coverage.xml'
format: 'php-clover'
checks:
php:
avoid_fixme_comments: true
avoid_multiple_statements_on_same_line: true
avoid_superglobals: false
avoid_todo_comments: true
avoid_usage_of_logical_operators: true
blank_line_after_namespace_declaration: true
classes_in_camel_caps: true
encourage_postdec_operator: true
encourage_single_quotes: true
fix_line_ending: true
fix_php_opening_tag: true
fix_use_statements:
order_alphabetically: true
preserve_blanklines: false
preserve_multiple: false
remove_unused: true
function_in_camel_caps: true
line_length:
max_length: 120
more_specific_types_in_doc_comments: true
newline_at_end_of_file: true
no_exit: true
no_global_keyword: true
no_goto: true
no_long_variable_names:
maximum: 32
no_mixed_inline_html: true
no_short_method_names:
minimum: 3
no_short_variable_names:
minimum: 3
no_underscore_prefix_in_methods: true
no_underscore_prefix_in_properties: true
one_class_per_file: true
optional_parameters_at_the_end: true
param_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
parameters_in_camelcaps: true
php5_style_constructor: true
phpunit_assertions: true
prefer_while_loop_over_for_loop: true
properties_in_camelcaps: true
psr2_class_declaration: false
psr2_control_structure_declaration: false
psr2_switch_declaration: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
require_braces_around_control_structures: true
return_doc_comment_if_not_inferrable: true
return_doc_comments: true
security_vulnerabilities: true
side_effects_or_types: true
simplify_boolean_return: true
single_namespace_per_use: true
uppercase_constants: true
filter: { }
coding_style:
php:
spaces:
around_operators:
concatenation: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
do_while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower