Skip to content

Repository files navigation

phpcs/phpcbf plugin for phpcq.

This plugin provides phpcs integration for phpcq.

It also provides a "fix" option, which runs phpcbf on the code base.

Configuration

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

About

This plugin provides phpcs/phpcbf integration for phpcq.

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages