PHPCS rules used in ThemeHybrid projects.
- PHPCS
PHP_CodeSniffer coding standards ruleset for the ThemeHybrid projects.
git clone https://github.com/themehybrid/phpcs-rules
cd phpcs-rules
composer install
composer config repositories.phpcs-rules vcs https://github.com/themehybrid/phpcs-rules
composer require themehybrid/phpcs-rules:dev-main --dev
Create or modify phpcs.xml
in project root:
<?xml version="1.0"?>
<ruleset>
<file>src</file>
<rule ref="ThemeHybrid"/>
</ruleset>
$ composer exec -v phpcs -- -s [<file>] ...