-
Notifications
You must be signed in to change notification settings - Fork 11
/
.scrutinizer.yml
115 lines (105 loc) · 2.61 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
inherit: true
filter:
excluded_paths: [vendor/*]
before_commands:
- composer install --prefer-source --dev
tools:
# PHP Code Coverage
php_code_coverage:
enabled: true
test_command: phpunit --colors --verbose
# PHP Code Sniffer
php_code_sniffer:
config:
standard: PSR2
# PHP Copy/Paste Detector
php_cpd:
enabled: true
excluded_dirs: [vendor]
# PHP CS Fixer
php_cs_fixer:
enabled: true
config:
level: all
# PHP LOC
php_loc:
enabled: true
excluded_dirs: [vendor]
# PHP Mess Detector
php_mess_detector:
enabled: true
# PHP PDepend
php_pdepend:
enabled: true
excluded_dirs: [vendor]
# PHP Analyzer
php_analyzer:
enabled: true
config:
# Checks
check_access_control:
enabled: true
basic_semantic_checks:
enabled: true
simplify_boolean_return:
enabled: true
dead_assignments:
enabled: true
typo_checks:
enabled: true
check_usage_context:
enabled: true
method_call_on_non_object:
enabled: true
ignore_null_pointer: true
foreach:
value_as_reference: true
traversable: true
missing_argument: true
argument_type_checks: strict
phpunit_checks:
enabled: true
parameter_reference_check:
enabled: true
precedence_checks:
enabled: true
assignment_in_condition: true
comparison_of_bit_result: true
reflection_checks:
enabled: true
checkstyle:
enabled: true
no_trailing_whitespace: true
naming:
enabled: false
suspicious_code:
enabled: true
overriding_parameter: true
overriding_closure_use: true
parameter_closure_use_conflict: true
parameter_multiple_times: true
non_existent_class_in_instanceof_check: true
non_existent_class_in_catch_clause: true
assignment_of_null_return: true
non_commented_switch_fallthrough: true
non_commented_empty_catch_block: true
overriding_private_members: true
use_statement_alias_conflict: true
precedence_in_condition_assignment: true
unreachable_code:
enabled: true
check_variables:
enabled: true
# Fixes
doc_comment_fixes:
enabled: true
reflection_fixes:
enabled: true
use_statement_fixes:
enabled: true
remove_unused: true
preserve_multiple: false
order_alphabetically: false
# SensioLabs Security Checker
sensiolabs_security_checker:
enabled: true