Permalink
Fetching contributors…
Cannot retrieve contributors at this time
111 lines (99 sloc) 4.38 KB
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
pdepend:
# coverageReport: build/coverage-clover.xml
phpcpd:
minLines: 5
minTokens: 70
phpmetrics:
# v1
config: null
# v2
git: false
# junit: build/log-junit.xml
# composer: composer.json
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: app/psalm.xml
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
phpstan: app/report/phpstan.xsl
assets:
bootstrap.min.css: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
jquery.min.js: https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
bootstrap.min.js: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js
prism.min.css: https://cdnjs.cloudflare.com/ajax/libs/prism/1.5.1/themes/prism.min.css
prism.js: https://cdnjs.cloudflare.com/ajax/libs/prism/1.5.1/prism.js
prism-php.min.js: https://cdnjs.cloudflare.com/ajax/libs/prism/1.5.1/components/prism-php.min.js
jquery.dataTables.min.js: https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js
dataTables.bootstrap.min.js: https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js
dataTables.responsive.min.js: https://cdn.datatables.net/responsive/2.1.0/js/dataTables.responsive.min.js
responsive.bootstrap.min.js: https://cdn.datatables.net/responsive/2.1.0/js/responsive.bootstrap.min.js
dataTables.bootstrap.min.css: https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css
responsive.bootstrap.min.css: https://cdn.datatables.net/responsive/2.1.0/css/responsive.bootstrap.min.css
selectize.min.js: https://cdn.jsdelivr.net/selectize/0.12.3/js/standalone/selectize.min.js
selectize.bootstrap3.css: https://cdn.jsdelivr.net/selectize/0.12.3/css/selectize.bootstrap3.css
ansi_up.js: https://edgedesigncz.github.io/phpqa/assets/ansi_up.js
# !!! EXPERIMENTAL !!!
# Beware that configuration or \Edge\QA\Tools\Tool might change (especially $SETTINGS is not stable :)
# Use it for development of new tools, but not on production (you can add just a new tool, don't have to define all tools).
tool:
phpmetrics: [Edge\QA\Tools\Analyzer\PhpMetrics, Edge\QA\Tools\Analyzer\PhpMetricsV2]
phploc: Edge\QA\Tools\Analyzer\Phploc
phpcs: [Edge\QA\Tools\Analyzer\Phpcs, Edge\QA\Tools\Analyzer\PhpcsV3]
php-cs-fixer: Edge\QA\Tools\Analyzer\PhpCsFixer
phpmd: Edge\QA\Tools\Analyzer\Phpmd
pdepend: Edge\QA\Tools\Analyzer\Pdepend
phpcpd: Edge\QA\Tools\Analyzer\Phpcpd
parallel-lint: Edge\QA\Tools\Analyzer\ParallelLint
phpstan: Edge\QA\Tools\Analyzer\Phpstan
phpunit: Edge\QA\Tools\Analyzer\Phpunit
psalm: Edge\QA\Tools\Analyzer\Psalm
security-checker: Edge\QA\Tools\Analyzer\SecurityChecker