-
Notifications
You must be signed in to change notification settings - Fork 5
/
.scrutinizer.yml
58 lines (57 loc) · 1.58 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
build:
environment:
php:
version: 8.0
dependencies:
before:
- composer install --dev --prefer-source --no-interaction
- composer -v update
tests:
override:
-
command: 'vendor/bin/phpunit'
filter:
excluded_paths:
- 'tests/*'
before_commands:
- composer install --dev --prefer-source --no-interaction
checks:
php:
code_rating: true
duplication: true
uppercase_constants: true
simplify_boolean_return: true
return_doc_comments: true
properties_in_camelcaps: true
parameters_in_camelcaps: true
parameter_doc_comments: true
param_doc_comment_if_not_inferrable: true
return_doc_comment_if_not_inferrable: true
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
coding_style:
php:
spaces:
around_operators:
negation: true
braces:
classes_functions:
class: new-line
function: new-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:
constants:
true_false_null: lower