-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Originally posted by @mcaskill in #55 (comment)
I would propose prefixing these scripts and even describing them. For example:
{
"scripts": {
"fix:phpcbf": "@php vendor/bin/phpcbf -ps --colors packages/*/src/ --ignore=tests/",
"lint": [
"@lint:php",
"@lint:phpcs",
"@lint:phpstan"
],
"lint:php": "find packages -type f -name '*.php' -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected'; test $? -eq 1",
"lint:phpcs": "./tests/script/phpcs",
"lint:phpstan": "@php vendor/bin/phpstan analyse",
"test": [
"@test:phpunit"
],
"test:phpunit": "./tests/script/phpunit"
},
"scripts-descriptions": {
"fix:phpcbf": "Fix syntax violations with PHPCS",
"lint": "Run all linting tools",
"lint:php": "Run syntax check with PHP",
"lint:phpcs": "Run syntax check with PHPCS",
"lint:phpstan": "Run static code analysis with PHPStan",
"test": "Run all testing tools",
"test:phpunit": "Run all tests with PHPUnit"
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request