mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-07-18 14:03:23 +09:00
Introducing coding standards validation.
This commit is contained in:
committed by
Nathan Rice
parent
6e40c921ab
commit
fd504d41ac
+40
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "wp-coding-standards/wpcs",
|
||||
"type": "phpcodesniffer-standard",
|
||||
"description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
|
||||
"keywords": [
|
||||
"phpcs",
|
||||
"standards",
|
||||
"WordPress"
|
||||
],
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Contributors",
|
||||
"homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3",
|
||||
"squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpcompatibility/php-compatibility": "^9.0"
|
||||
},
|
||||
"suggest": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
|
||||
},
|
||||
"minimum-stability": "RC",
|
||||
"scripts": {
|
||||
"post-install-cmd": "@install-codestandards",
|
||||
"post-update-cmd": "@install-codestandards",
|
||||
"check-cs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
|
||||
"fix-cs": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf",
|
||||
"install-codestandards": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --config-set installed_paths ../../..,../../phpcompatibility/php-compatibility"
|
||||
},
|
||||
"support": {
|
||||
"issues": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues",
|
||||
"wiki": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki",
|
||||
"source": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user