PHP_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions
This package is auto-updated.
Last update: 2020-10-26 15:31:52 UTC
This project contains two rulesets:
WordPressVIPMinimum- for use with projects on the (older) WordPress.com VIP platform.
WordPress-VIP-Go- for use with projects on the (newer) VIP Go platform.
These rulesets contain only the rules which are considered to be "errors" and "warnings" according to the WordPress VIP Go documentation
Go to https://wpvip.com/documentation/phpcs-review-feedback/ to learn about why violations are flagged as errors vs warnings and what the levels mean.
composer require automattic/vipwpcs, or
composer g require automattic/vipwpcs if installing globally.
This will install the latest compatible versions of PHPCS, WPCS and VariableAnalysis and register the external standards with PHP_CodeSniffer.
Please refer to the installation instructions for installing PHP_CodeSniffer for WordPress.com VIP for more details.
As of VIPCS version 2.3.0, there is no need to
require the PHP_CodeSniffer Standards Composer Installer Plugin anymore as it is now a requirement of VIPCS itself.
Please see CONTRIBUTION.md.
Licensed under GPL-2.0-or-later.