VIP-Coding-Standards
VIP-Coding-Standards
PHP_CodeSniffer ruleset to enforce WordPress.com VIP and VIP Go coding standards
This project contains PHP_CodeSniffer (PHPCS) sniffs and rulesets to validate code developed for WordPress VIP.
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.
The rulesets use rules from the WordPress Coding Standards (WPCS) project, as well as the VariableAnalysis standard.
Go to https://docs.wpvip.com/technical-references/code-review/phpcs-report/ to learn about why violations are flagged as errors vs warnings and what the levels mean.