-
Notifications
You must be signed in to change notification settings - Fork 57
/
.phpqa.yml
72 lines (65 loc) · 1.9 KB
/
.phpqa.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
62
63
64
65
66
67
68
69
70
71
72
phpqa:
report: true
verbose: true
analyzedDirs:
- ./
# - ./phpqa - causes psalm fatal error
# Problem parsing /home/travis/build/EdgedesignCZ/phpqa/build/psalm-phpqa.xml:
# /home/travis/build/EdgedesignCZ/phpqa//./phpqa is not a directory
# https://travis-ci.org/EdgedesignCZ/phpqa/jobs/558458321#L1003
# Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/travis/build/EdgedesignCZ/phpqa/phpqa/):
# failed to open dir: No such file or directory
# https://travis-ci.org/EdgedesignCZ/phpqa/jobs/558458320#L799
ignoredFiles: tests/.phpunit/fix-psalm-testcase.php
tools:
- phpmetrics:0
- phploc
- phpcs:0
- php-cs-fixer
- phpmd:0
- pdepend
- phpcpd
- phpstan
- phpunit:0
- psalm
- security-checker:0
- parallel-lint:0
- deptrac
phpmd:
standard: phpmd.xml
ignoreParsingErrors: false
phpcs:
standard:
- PSR2
- phpcs.xml
reports:
cli:
- full
- info
file:
# checkstyle: checkstyle.xml # always included
info: phpcs-info.txt
full: phpcs-full.txt
psalm:
config: psalm.xml
deadCode: true
phpstan:
level: 5 # last level without type hints
# memoryLimit: 1G
# https://github.com/phpstan/phpstan#configuration
standard: phpstan.neon
deptrac:
depfile: depfile.yaml
phpunit:
binary: ../../vendor/phpunit/phpunit/phpunit
config: ../../phpunit.xml
reports:
file:
log: [junit]
testdox: [html, text]
# example for running phpmetrics:v1, if v2 is installed in composer
# $ phpqa --config tests/.ci/ --tools phpmetricsV1,phpmetrics
#phpmetricsV1:
# binary: /usr/local/bin/phpmetrics.phar
#tool:
# phpmetricsV1: Edge\QA\Tools\Analyzer\PhpMetrics