-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
50 lines (50 loc) · 1.31 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
# Since we need to run part of your test suite, most libraries will first
# need to install vendors, for example via composer.
before_commands:
- composer install --dev
checks:
php:
code_rating: true
duplication: true
build:
tests:
override:
-
command: 'phpunit --coverage-clover=some-file'
coverage:
file: 'some-file'
format: 'php-clover'
tools:
php_cs_fixer:
extensions:
- php
command: php-cs-fixer
enabled: true
filter:
paths: ["app/src/*"]
config:
level: all
php_cpd:
command: phpcpd
# Minimum number of identical lines (default: 5)
min_lines: 5
# Minimum number of identical tokens (default: 70)
min_tokens: 70
# A list of names that should be scanned (default: '*.php')
names:
# Default:
- '*.php'
# A list of excluded directories.
excluded_dirs: ["vendor", "files"]
enabled: true
php_code_sniffer:
extensions:
- php
command: phpcs
enabled: true
filter:
paths: ["app/src/*"]
config:
standard: PSR2
# external_code_coverage:
# timeout: 1200