Skip to content

Commit db22daa

Browse files
committed
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-
1 parent 652785a commit db22daa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,12 @@
5858
"coverage": [
5959
"@php ./vendor/phpunit/phpunit/phpunit"
6060
]
61+
},
62+
"scripts-descriptions": {
63+
"lint": "Check the PHP files for parse errors.",
64+
"check-cs": "Check the PHP files for code style violations and best practices.",
65+
"fix-cs": "Auto-fix code style violations in the PHP files.",
66+
"test": "Run the unit tests without code coverage.",
67+
"coverage": "Run the unit tests with code coverage."
6168
}
6269
}

0 commit comments

Comments
 (0)