From db22daa4edba38a111aae0632d48da0c60d05613 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 22 Sep 2023 04:28:26 +0200 Subject: [PATCH] Composer: add script descriptions These descriptions will be used when a list of the available scripts is requested on the command-line using the `composer list` or `composer run -l` commands. These descriptions also help document the different scripts for the maintainers of the `composer.json` file. Ref: https://getcomposer.org/doc/articles/scripts.md#custom-descriptions- --- composer.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/composer.json b/composer.json index 8ba6faa..b6dcc81 100644 --- a/composer.json +++ b/composer.json @@ -58,5 +58,12 @@ "coverage": [ "@php ./vendor/phpunit/phpunit/phpunit" ] + }, + "scripts-descriptions": { + "lint": "Check the PHP files for parse errors.", + "check-cs": "Check the PHP files for code style violations and best practices.", + "fix-cs": "Auto-fix code style violations in the PHP files.", + "test": "Run the unit tests without code coverage.", + "coverage": "Run the unit tests with code coverage." } }