Commit c6e0c789 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Simplification des scripts de composer.

No related merge requests found
Showing with 9 additions and 27 deletions
+9 -27
......@@ -56,6 +56,8 @@
"post-update-cmd": "@customize-reminder",
"post-create-project-cmd": "rm CUSTOMIZATION.md README.md LICENSE .docheader src/*.php tests/*.php",
"customize-reminder": "echo 'Ne pas oublier de configurer ce template, cf. https://gitlab.irstea.fr/pole-is/tools/php-skeleton/blob/master/CUSTOMIZATION.md'",
"phploc": "vendor/bin/phploc src tests",
"fix-cs": "vendor/bin/php-cs-fixer fix",
"test": [
"@test:lint",
"@test:phpcpd",
......@@ -66,37 +68,17 @@
"@test:composer-require",
"@test:security"
],
"phploc": [
"vendor/bin/phploc src tests"
],
"fix-cs": [
"vendor/bin/php-cs-fixer fix"
],
"test:lint": [
"vendor/bin/parallel-lint src tests",
"vendor/bin/php-cs-fixer fix --dry-run"
],
"test:phpcpd": [
"vendor/bin/phpcpd --fuzzy src tests"
],
"test:phpmd": [
"vendor/bin/phpmd src,tests text ./phpmd-ruleset.xml"
],
"test:phpstan": [
"vendor/bin/phpstan analyse --ansi --no-progress src tests"
],
"test:phpunit": [
"vendor/bin/phpunit"
],
"test:composer-validate": [
"composer validate"
],
"test:composer-require": [
"vendor/bin/composer-require-checker check"
],
"test:security": [
"test '!' -s composer.lock || vendor/bin/security-checker security:check"
]
"test:phpcpd": "vendor/bin/phpcpd --fuzzy src tests",
"test:phpmd": "vendor/bin/phpmd src,tests text ./phpmd-ruleset.xml",
"test:phpstan": "vendor/bin/phpstan analyse --ansi --no-progress src tests",
"test:phpunit": "vendor/bin/phpunit",
"test:composer-validate": "composer validate",
"test:composer-require": "vendor/bin/composer-require-checker check",
"test:security": "test '!' -s composer.lock || vendor/bin/security-checker security:check"
},
"scripts-descriptions": {
"fix-cs": "Applique les corrections automatiques de style.",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment