belvg/phpqa-phpcbf

Add phpcbf validator for phpqa tools

Installs: 71

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/belvg/phpqa-phpcbf

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

This package is not auto-updated.

Last update: 2025-09-28 11:47:05 UTC


README

Configure phpqa.yml for using phpcbf code fixer:

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

Now you can use it. There is error when phpqa create report, if phpcbf fixed errors there is display only 1 coount error. But if we go to web version we will see correct information