automattic / jetpack-codesniffer
Jetpack Coding Standards. Based on the WordPress Coding Standards, with some additions.
Installs: 31 476
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Type:phpcodesniffer-standard
Requires
Requires (Dev)
- automattic/jetpack-changelogger: ^3.3.1
- wp-coding-standards/wpcs: 2023-01-04 as 2.3.1
- yoast/phpunit-polyfills: 1.0.4
- dev-trunk / 2.7.x-dev
- v2.7.0
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.0
- v1.1.0
- v1.0.0
- dev-prerelease
- dev-fix/slack-workflow-branch-detection
- dev-fix/release-branch-typo
- dev-update/generate-branch-plugin
- dev-release-v2.2.0
- dev-release-v2.1.1
- dev-feature/reorg
- dev-release-v2.1.0
- dev-release-v2.0.0
- dev-release-v1.1.0
- dev-release-v1.0.0
This package is auto-updated.
Last update: 2023-02-01 19:33:14 UTC
README
This is a package implementing phpcs sniffs for the Jetpack Coding Standard.
This standard is generally that of WordPress, with a few additions.
Usage
In your project's composer.json
, add the following lines:
{ "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "*", "automattic/jetpack-codesniffer": "^1" } }
Your project must use the default composer vendor directory, vendor
.
You should then include the Jetpack rules in your .phpcs.xml.dist
, like
<rule ref="Jetpack" />
You will also likely want to set some configuration for other included rulesets:
<config name="minimum_supported_wp_version" value="5.4" /> <config name="testVersion" value="5.6-"/>
Included Standards
The Jetpack standard includes the following other standards:
- PHPCompatibilityWP
- WordPress-Core, WordPress-Docs, and WordPress-Extra
- VariableAnalysis
- Selected sniffs from MediaWiki