From 0d7ba9d77f4b70e7b38f3779ce5a0a2cd64e1bb1 Mon Sep 17 00:00:00 2001
From: Perreal Guillaume <guillaume.perreal@irstea.fr>
Date: Tue, 16 Apr 2019 12:36:16 +0200
Subject: [PATCH] Changement des scripts de composer.

---
 composer.json | 34 +++++++++-------------------------
 1 file changed, 9 insertions(+), 25 deletions(-)

diff --git a/composer.json b/composer.json
index 6cfb74e..8a4d5c6 100644
--- a/composer.json
+++ b/composer.json
@@ -44,40 +44,24 @@
         "sebastian/phpcpd": "^4.0"
     },
     "scripts": {
+      "fix-cs": "@php vendor/bin/php-cs-fixer fix --verbose",
+      "phploc": "@php vendor/bin/phploc --no-interaction src/php tests",
       "test": ["@test:static", "@test:phpunit"],
       "test:static": [
         "@test:lint",
         "@test:php-cs-fixer",
-        "@test:phploc",
         "@test:phpmd",
         "@test:phpstan",
         "@test:phpcpd",
         "@test:composer-require-checker"
       ],
-      "test:lint": [
-        "@php vendor/bin/parallel-lint src/php tests -j $(nproc)"
-      ],
-      "test:php-cs-fixer": [
-        "@php vendor/bin/php-cs-fixer fix --dry-run --verbose --using-cache=false --show-progress=none --no-interaction"
-      ],
-      "test:phploc": [
-        "@php vendor/bin/phploc --no-interaction src/php tests"
-      ],
-      "test:phpmd": [
-        "@php vendor/bin/phpmd src/php,tests text ./phpmd-ruleset.xml"
-      ],
-      "test:phpcpd": [
-        "@php vendor/bin/phpcpd src/php tests --no-interaction --fuzzy"
-      ],
-      "test:phpstan": [
-        "@php vendor/bin/phpstan analyse --no-progress --no-interaction"
-      ],
-      "test:composer-require-checker": [
-        "@php -d xdebug.max_nesting_level=1000 vendor/bin/composer-require-checker --ignore-parse-errors"
-      ],
-      "test:phpunit": [
-        "@php vendor/bin/phpunit"
-      ]
+      "test:lint": "@php vendor/bin/parallel-lint src/php tests -j $(nproc)",
+      "test:php-cs-fixer": "@php vendor/bin/php-cs-fixer fix --dry-run --verbose --using-cache=false --show-progress=none --no-interaction",
+      "test:phpmd": "@php vendor/bin/phpmd src/php,tests text ./phpmd-ruleset.xml",
+      "test:phpcpd": "@php vendor/bin/phpcpd src/php tests --no-interaction --fuzzy",
+      "test:phpstan": "@php vendor/bin/phpstan analyse --no-progress --no-interaction",
+      "test:composer-require-checker": "@php -d xdebug.max_nesting_level=1000 vendor/bin/composer-require-checker --ignore-parse-errors",
+      "test:phpunit": "@php vendor/bin/phpunit"
     },
     "autoload": {
         "psr-4": { "Irstea\\NgModelGeneratorBundle\\": "src/php/" }
-- 
GitLab