valu / wp-codesniffer-rules
PHP_CodeSniffer rules (sniffs) to enforce Valu WP coding conventions
Installs: 548
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: >=5.4
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.2
- squizlabs/php_codesniffer: ^3.5.5
- wp-coding-standards/wpcs: ^2.3
This package is auto-updated.
Last update: 2024-10-06 16:02:10 UTC
README
Install
composer require valu/wp-php-ruleset
Configure
Add phpcs.xml
with
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Custom" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> <rule ref="Valu-WP-Rules"/> </ruleset>
and run
./vendor/bin/phpcs src