belvg/phpqa-phpcbf

为phpqa工具添加phpcbf验证器

v1.0.3 2020-02-21 17:51 UTC

This package is not auto-updated.

Last update: 2024-09-29 07:10:14 UTC


README

配置phpqa.yml以使用phpcbf代码修复工具

phpcbf:
    # alternatively you can use an array to define multiple standards (https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage#specifying-a-coding-standard)
    standard: PSR2
    # number of allowed errors is compared with warnings+errors, or just errors from checkstyle.xml
    ignoreWarnings: false
    outputMode: 2
  #in section tools
tool:
    phpcbf: Edge\QA\Tools\Analyzer\Phpcbf

现在你可以使用了。当phpqa生成报告时,如果phpcbf修复了错误,则只会显示1个错误计数。但如果我们转到网络版本,我们将看到正确的信息。