From 1bd4504c6a56b11a0e7f5974176aeeefed12403d Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Thu, 23 May 2024 15:56:55 +0900 Subject: [PATCH] Add require-checker to composer scripts A new script named "req-check" has been added in the composer scripts, which checks unused or undeclared packages. This requirement checker will help us clean up the composer package list and manage dependencies more efficiently. --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6419e42..c911434 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,8 @@ "sa": ["psalm -c psalm.compiler.xml --show-info=false", "phpstan analyse -c phpstan.neon --no-progress"], "metrics": ["@test", "phpmetrics --report-html=build/metrics --exclude=Exception --log-junit=build/junit.xml --junit=build/junit.xml src"], "phpmd": ["phpmd src text ./phpmd.xml"], - "build": ["@cs", "@sa", "@pcov", "@metrics"] + "build": ["@cs", "@sa", "@pcov", "@metrics"], + "req-check": ["./vendor-bin/tools/vendor/bin/composer-require-checker"] }, "extra": { "bamarni-bin": {