cocart-headless / cocart-sniffs
Collection of PHP_CodeSniffer sniffs for CoCart development.
Installs: 87
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: >=7.0
- dealerdirect/phpcodesniffer-composer-installer: ^1.0.0
- phpcompatibility/phpcompatibility-wp: 2.1.4
- wp-coding-standards/wpcs: ^3.0.0
This package is auto-updated.
Last update: 2024-11-10 18:50:16 UTC
README
Collection of PHP_CodeSniffer sniffs for CoCart.
Installation
composer require cocart-headless/cocart-sniffs
Usage
Command line
./vendor/bin/phpcs --standard=CoCart-Core <file>
Config file
PHPCS config file:
<?xml version="1.0"?> <ruleset name="CoCart Coding Standards"> <description>My projects ruleset.</description> <!-- Configs --> <config name="minimum_supported_wp_version" value="5.4" /> <config name="testVersion" value="7.2-" /> <!-- Rules --> <rule ref="CoCart-Core" /> <rule ref="WordPress.WP.I18n"> <properties> <property name="text_domain" type="array" value="new-text-domain" /> </properties> </rule> <rule ref="PHPCompatibility"> <exclude-pattern>tests/</exclude-pattern> </rule> </ruleset>