Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer: normalize, script descriptions and other tweaks #309

Merged
merged 3 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
}
}