diff --git a/composer.json b/composer.json index 6cfb74e8e9ca35c4e01b857f0429ec54369b3ab6..8a4d5c682ed85925bb1f2704a7aba02cb84d633e 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/" }