-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scrutinizer.yml
83 lines (78 loc) · 2.05 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
# language: php
filter:
paths: [src/*]
excluded_paths: [tests/*, vendor/*]
before_commands:
- 'composer self-update'
- 'composer update --prefer-stable --prefer-source --no-interaction --no-scripts --no-progress --no-suggest'
coding_style:
php:
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: lower
spaces:
around_operators:
concatenation: true
negation: false
other:
after_type_cast: true
tools:
php_code_coverage: false
php_code_sniffer:
enabled: true
config:
standard: 'PSR2'
filter:
paths: [src/*, tests/*]
php_mess_detector:
enabled: true
config:
ruleset: 'unusedcode,naming,design,controversial,codesize'
php_cpd: true
php_loc: true
php_pdepend: true
php_analyzer: true
sensiolabs_security_checker: true
checks:
php:
code_rating: true
duplication: true
uppercase_constants: true
properties_in_camelcaps: true
prefer_while_loop_over_for_loop: true
parameters_in_camelcaps: true
optional_parameters_at_the_end: true
no_short_variable_names:
minimum: '3'
no_short_method_names:
minimum: '3'
no_goto: true
newline_at_end_of_file: true
more_specific_types_in_doc_comments: true
line_length:
max_length: '120'
function_in_camel_caps: true
encourage_single_quotes: true
encourage_postdec_operator: true
classes_in_camel_caps: true
avoid_perl_style_comments: true
avoid_multiple_statements_on_same_line: true
parameter_doc_comments: true
use_self_instead_of_fqcn: true
simplify_boolean_return: true
avoid_fixme_comments: true
return_doc_comments: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true