Skip to content

Commit

Permalink
Merge pull request #1489 from WordPress-Coding-Standards/feature/comp…
Browse files Browse the repository at this point in the history
…oser-normalize

 Composer: Normalize composer.json
  • Loading branch information
jrfnl authored Sep 18, 2018
2 parents fc016f7 + 4219a45 commit 1cb6a74
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
{
"name" : "wp-coding-standards/wpcs",
"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" : [
"keywords": [
"phpcs",
"standards",
"WordPress"
],
"license": "MIT",
"authors": [
{
"name" : "Contributors",
"name": "Contributors",
"homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"

}
],
"require" : {
"php" : ">=5.3",
"require": {
"php": ">=5.3",
"squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
},
"require-dev" : {
"require-dev": {
"phpcompatibility/php-compatibility": "*"
},
"suggest" : {
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
},
"minimum-stability" : "RC",
"support" : {
"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",
"wiki": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki",
"source": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards"
},
"type" : "phpcodesniffer-standard",
"scripts" : {
"install-codestandards": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --config-set installed_paths ../../..,../../phpcompatibility/php-compatibility",
"check-cs" : "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"fix-cs" : "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf",
"post-install-cmd" : "@install-codestandards",
"post-update-cmd" : "@install-codestandards"
}
}

0 comments on commit 1cb6a74

Please sign in to comment.