-
Notifications
You must be signed in to change notification settings - Fork 57
/
.phpqa.yml
68 lines (59 loc) · 1.86 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
phpcs:
standard: PSR2
# number of allowed errors is compared with warnings+errors, or just errors from checkstyle.xml
ignoreWarnings: false
# https://github.com/squizlabs/PHP_CodeSniffer/wiki/Reporting
reports:
cli:
- full
file:
# checkstyle is always included and overriden
checkstyle: checkstyle.xml
# you can include custom reports (https://github.com/wikidi/codesniffer/blob/master/reports/wikidi/Summary.php#L39)
# ./vendor/owner/package/src/MySummaryReport.php: phpcs-summary.html
php-cs-fixer:
# http://cs.sensiolabs.org/#usage
rules: '@PSR2'
allowRiskyRules: false
# by default the tool is runned in dry-run mode (no fixers are applied)
isDryRun: true
# alternatively you can define path to your .phpcs_file (rules/allowRiskyRules config is ignored)
config: null
phpmd:
standard: app/phpmd.xml
phpcpd:
minLines: 5
minTokens: 70
phpmetrics:
config: null
phpstan:
level: 0
# https://github.com/phpstan/phpstan#configuration
# standard: tests/.travis/phpstan.neon
phpunit:
# binary: vendor/bin/phpunit
binary: null
# phpunit.xml
config: null
reports:
file: []
# log: [junit, tap, json]
# testdox: [html, text]
# coverage: [html, clover, crap4j, php, text, xml] # requires XDebug extension
psalm:
config: null
deadCode: false
threads: 1
showInfo: true
# Php file extensions to parse.
extensions:
- php
# paths are relative to .phpqa.yml, so don't copy-paste this section if you don't have custom templates
report:
phploc: app/report/phploc.xsl
phpcpd: app/report/phpcpd.xsl
phpcs: app/report/phpcs.xsl
pdepend: app/report/pdepend.xsl
phpmd: app/report/phpmd.xsl
php-cs-fixer: app/report/php-cs-fixer.xsl
psalm: app/report/psalm.xsl