Download the PHP package pantheon-systems/pantheon-wp-coding-standards without Composer
On this page you can find all versions of the php package pantheon-systems/pantheon-wp-coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pantheon-systems/pantheon-wp-coding-standards
More information about pantheon-systems/pantheon-wp-coding-standards
Files in pantheon-systems/pantheon-wp-coding-standards
Package pantheon-wp-coding-standards
Short Description PHPCS Rulesets for WordPress projects on Pantheon.
License MIT
Informations about the package pantheon-wp-coding-standards
Pantheon WP Coding Standards
PHPCS rulesets for WordPress projects on Pantheon.
Setup
The PHPCS ruleset can be installed via Composer:
composer require --dev pantheon-systems/pantheon-wp-coding-standards
Usage
Run the following command to run the standards checks:
We recommend using the -s
flag so that PHPCS will report the specific rule that was violated. This makes it easier to add exclusions or research possible solutions.
If you have a tests directory that you want to exclude from the sniffs, you can do so by adding the --ignore
flag:
Extending
If you want to customize the defaults or add additional rules, you can create your own standard file (e.g. phpcs.ruleset.xml
):
You can then reference this file when running PHPCS:
Included Checks
The Pantheon WP standard is based upon WordPress Coding Standards, VIP Coding Standards with some customizations based on Human Made's Coding Standards.
All versions of pantheon-wp-coding-standards with dependencies
fig-r/psr2r-sniffer Version ^1.5
phpcompatibility/phpcompatibility-wp Version ^2.1
wp-coding-standards/wpcs Version ^3.0