Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 2.41 KB

README.md

File metadata and controls

82 lines (51 loc) · 2.41 KB

bear/qatools

Collection of commonly used php QA tools.

Included in this package are:

Installation

Global install

composer global require bear/qatools

Local install

composer require --dev bear/qatools

QA Configs

cp vendor/bear/qatools/phpunit.xml.dist phpunit.xml
cp vendor/bear/qatools/phpcs.xml .
cp vendor/bear/qatools/phpmd.xml .
cp vendor/bear/qatools/phpstan.neon .
psalm --init

CI Configs

cp vendor/bear/qatools/.travis.yml .
cp vendor/bear/qatools/.scrutinizer.yml .

Usage

Test and CS

phpunit

phpunit

phpcs

phpcs --standard=./phpcs.xml src
phpcs --standard=./phpcs.xml --warning-severity=false src
phpcs --standard=vendor/bear/qatools/phpcs.xml --warning-severity=false src

Code Quality

phpstan

phpstan analyse

psalm

psalm

phploc

phploc src

phpcpd

phpcpd src

phpmetrics

phpmetrics --report-html=build/metrics/ --extensions=php src,composer.json,composer.lock --junit=build/logs/junit.xml