-
Notifications
You must be signed in to change notification settings - Fork 19
/
.scrutinizer.yml
61 lines (58 loc) · 1.68 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
checks:
php:
code_rating: true
duplication: true
fix_php_opening_tag: true
remove_php_closing_tag: true
no_mixed_inline_html: false
require_braces_around_control_structures: true
psr2_control_structure_declaration: true
avoid_superglobals: false
security_vulnerabilities: true
no_exit: true
simplify_boolean_return: true
return_doc_comments: false
return_doc_comment_if_not_inferrable: false
remove_extra_empty_lines: true
parameter_doc_comments: false
check_method_contracts:
verify_interface_like_constraints: true
verify_documented_constraints: true
verify_parent_constraints: true
no_short_method_names:
minimum: "3"
too_many_arguments: false
no_goto: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: false
fix_line_ending: true
filter:
paths: [src/*]
excluded_paths:
- "tests/*"
- "router.php"
- "*.min.js"
- "assets/js/"
tools:
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ["src"]
build:
environment:
php: "7.3"
#postgresql: true
#dependencies:
#before:
# - psql -c "CREATE DATABASE scrutinizer WITH OWNER = scrutinizer ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' TEMPLATE template0"
tests:
override:
- "php-scrutinizer-run"
- "phpcs-run ./src/"
- "make test"
nodes:
tests: true