fiolasoft / qa
为您的PHP项目提供质量保证
v0.7.2
2018-04-25 06:06 UTC
Requires
- php: >=7.1
- fiolasoft/coding-standard: ^0.1.0
- jakub-onderka/php-console-highlighter: ^0.3.2
- jakub-onderka/php-parallel-lint: ^1.0.0
README
为您的PHP项目提供质量保证(二进制文件)
安装
composer require --dev fiolasoft/qa
手动使用(二进制文件)
CodeSniffer & CodeFixer
默认文件夹是: src
, app
, tests
默认扩展名是: php
, php3
, php4
, php5
, phtml
, phpt
默认排除文件夹是: */temp
, */tmp
默认情况下,在项目库/项目的根目录中使用了 ruleset.xml
。否则,使用严格的默认配置。
vendor/bin/codesniffer vendor/bin/codesniffer <folder1> <folder2>
vendor/bin/codefixer vendor/bin/codefixer <folder1> <folder2>
代码检查器(PHP)
默认文件夹是: src
, app
, tests
vendor/bin/linter vendor/bin/linter <folder1> <folder2>
执行
composer qa
composer run qa
composer run-script qa
Composer
{ "scripts": { "qa": [ "linter src tests", "codesniffer src tests" ], "tester": [ "tester -s -p php --colors 1 -c tests/php-unix.ini tests/cases" ], "tester-coverage": [ "tester -s -p php --colors 1 -c tests/php-unix.ini -d extension=xdebug.so --coverage ./coverage.xml --coverage-src ./src tests/cases " ] } }
感谢您的测试、报告和贡献。