From bb027524a4d5d73bf2c5905ff6fb903ac433668c Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 5 Aug 2022 13:16:47 +0900 Subject: [PATCH] chore: update composer cs-fix command Use cache. No cache is slow. Make `cs-fix` default. CodeIgniter4 repository does not have `style` command. --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3c4ff80e6..e6ceaa1ee 100644 --- a/composer.json +++ b/composer.json @@ -64,7 +64,6 @@ "rector process", "@style" ], - "cs-fix": "@style", "deduplicate": "phpcpd app/ src/", "inspect": "deptrac analyze --cache-file=build/deptrac.cache", "mutate": "infection --threads=2 --skip-initial-tests --coverage=build/phpunit", @@ -72,7 +71,8 @@ "phpstan analyze", "psalm" ], - "style": "php-cs-fixer fix --verbose --ansi --using-cache=no", + "cs-fix": "php-cs-fixer fix --ansi --verbose --diff --using-cache=yes", + "style": "@cs-fix", "test": "phpunit" } }