-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
45 lines (45 loc) · 1.1 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
build:
environment:
php: 8.2
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
tests-and-coverage:
environment:
php:
ini:
"xdebug.mode": coverage
tests:
override:
- phpcs-run ./src --standard=PSR12 --encoding=utf-8
- command: php vendor/bin/phpunit --coverage-clover=.reports/clover.xml
coverage:
file: .reports/clover.xml
format: php-clover
checks:
php:
psr2_switch_declaration: true
psr2_class_declaration: true
no_short_open_tag: true
deprecated_code_usage: true
code_rating: true
duplication: true
filter:
excluded_paths: [bin, docs, docker, data, tests, vendor]
tools:
php_analyzer: true
php_code_coverage: true
php_code_sniffer:
config:
standard: PSR12
php_cpd:
enabled: true
excluded_dirs: [bin, docs, docker, data, tests, vendor]
php_loc:
enabled: true
excluded_dirs: [bin, docs, docker, data, tests, vendor]
php_mess_detector: true
php_pdepend: true
sensiolabs_security_checker: true