This plugin provides phpcs integration for phpcq.
It also provides a "fix" option, which runs phpcbf on the code base.
Extend your .phpcq.yaml.dist configuration by adding the plugin and configuring the task:
phpcq:
plugins:
phpcs:
version: ^1.0signed: falsetasks:
phpcs:
config: &phpcs-config# By default, PSR12 is usedstandard: ~standard_paths:
- 'vendor/path/to/coding-standard'excluded:
- 'some/excluded_path'excluded_sniffs:
- 'Excludedniff'# Define paths which should be loaded when PHPCS is bootstrapping.# Useful for enhancement plugins which provides a coding standardautoload_paths:
- 'vendor/autoload.php'# The phpcbf tool is activated when activating the fix flagphpcbf:
plugin: phpcsconfig:
<<: *phpcs-configfix: true