Skip to content

Commit

Permalink
Merge pull request #309 from Yoast/JRF/composer-tweaks
Browse files Browse the repository at this point in the history
Composer: normalize, script descriptions and other tweaks
  • Loading branch information
jrfnl authored Sep 26, 2023
2 parents 3f0c760 + 07a7fb7 commit 0e33b6b
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,50 @@
{
"name": "yoast/yoastcs",
"description": "PHP_CodeSniffer rules for Yoast projects",
"license": "MIT",
"type": "phpcodesniffer-standard",
"keywords": [
"phpcs",
"standards",
"static analysis",
"wordpress",
"yoast"
],
"homepage": "https://github.com/Yoast/yoastcs",
"license": "MIT",
"authors": [
{
"name": "Team Yoast",
"email": "support@yoast.com",
"homepage": "https://yoast.com"
}
],
"type" : "phpcodesniffer-standard",
"homepage": "https://github.com/Yoast/yoastcs",
"support": {
"issues": "https://github.com/Yoast/yoastcs/issues",
"source": "https://github.com/Yoast/yoastcs"
},
"require": {
"php": ">=5.4",
"squizlabs/php_codesniffer": "^3.7.2",
"wp-coding-standards/wpcs": "^2.3.0",
"phpcompatibility/phpcompatibility-wp": "^2.1.4",
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0",
"php-parallel-lint/php-console-highlighter": "^1.0.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"php-parallel-lint/php-console-highlighter": "^1.0.0"
"phpcompatibility/phpcompatibility-wp": "^2.1.4",
"squizlabs/php_codesniffer": "^3.7.2",
"wp-coding-standards/wpcs": "^2.3.0"
},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.3.5",
"roave/security-advisories": "dev-master",
"phpcsstandards/phpcsdevtools": "^1.2.1",
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"phpcsstandards/phpcsdevtools": "^1.2.1"
"roave/security-advisories": "dev-master"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"config-yoastcs" : [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --config-set default_standard Yoast"
],
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
],
Expand All @@ -67,5 +63,13 @@
"check-complete": [
"@php ./vendor/phpcsstandards/phpcsdevtools/bin/phpcs-check-feature-completeness ./Yoast"
]
},
"scripts-descriptions": {
"lint": "Check the PHP files for parse errors.",
"check-cs": "Check the PHP files for code style violations and best practices.",
"fix-cs": "Auto-fix code style violations in the PHP files.",
"test": "Run the unit tests without code coverage.",
"coverage": "Run the unit tests with code coverage.",
"check-complete": "Check if all the sniffs have tests and XML documentation."
}
}

0 comments on commit 0e33b6b

Please sign in to comment.