Skip to content

Installing Code Quality

Chris Chasm edited this page Feb 2, 2021 · 5 revisions

Home

At your command line prompt, inside the plugin folder root: Run composer install. You will need composer installed into your system. The command below will install required composer elements that provide code quality tools (phpcs).

$ composer install

Once composer install has run, you can run the phpcbf function out of the new vendor folder.

$ vendor/bin/phpcbf

If the phpcbf utility cannot auto correct a style issue, then use phpcs to print the code style issues that need corrected.

$ vendor/bin/phpcs