Skip to content

Commit

Permalink
Add "static analysis" Composer keyword (#278)
Browse files Browse the repository at this point in the history
As per https://getcomposer.org/doc/04-schema.md#keywords by including "static analysis" as a keyword in the `composer.json` file, Composer 2.4.0-RC1 and later will prompt users if the package is installed with `composer require` instead of `composer require --dev`. See composer/composer#10960 for more info.

The "phpcs" keyword is to match other coding-standards packages.
  • Loading branch information
GaryJones committed Sep 6, 2022
1 parent ad2b0b5 commit 9f70390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "sirbrillig/phpcs-variable-analysis",
"description": "A PHPCS sniff to detect problems with variables.",
"type": "phpcodesniffer-standard",
"keywords" : [ "phpcs", "static analysis" ],
"license": "BSD-2-Clause",
"authors": [
{
Expand Down

0 comments on commit 9f70390

Please sign in to comment.