-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
executable file
·60 lines (60 loc) · 1.42 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
---
build:
dependencies:
before:
- "pecl uninstall igbinary"
- "pecl uninstall redis"
- "pecl uninstall mongodb"
- "pecl install igbinary"
- "yes | pecl install redis"
- "pecl install mongodb"
- "cp .env.travis .env"
- "composer require wikimedia/composer-merge-plugin"
- "composer update --lock"
- "composer update --lock"
environment:
mongodb: "4.0"
node: "10"
php:
version: 7.2
tests:
override:
- php-scrutinizer-run
- command: phpcs-run
use_website_config: true
checks:
php:
code_rating: true
duplication: true
fix_doc_comments: true
fix_identation_4spaces: true
fix_line_ending: true
fix_linefeed: true
fix_php_opening_tag: true
fix_use_statements:
order_alphabetically: true
preserve_blanklines: true
preserve_multiple: false
remove_unused: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
filter:
excluded_paths:
- tests/*
- vendor/*
- src/Modules/*/Tests/*
tools:
external_code_coverage:
timeout: 3600 # Timeout in seconds.
php_mess_detector: true
php_code_sniffer: true
sensiolabs_security_checker: true
php_code_coverage: true
php_pdepend: true
php_loc:
enabled: true
excluded_dirs: [vendor, tests, src/Modules/*/Tests]
php_cpd:
enabled: true
excluded_dirs: [vendor, tests, src/Modules/*/Tests]