Rarst / phpcs-cognitive-complexity

Cognitive Complexity implementation for PHP_CodeSniffer
Other
26 stars 4 forks source link

Add "static analysis" Composer keyword #7

Closed GaryJones closed 2 years ago

GaryJones commented 2 years ago

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 https://github.com/composer/composer/pull/10960 for more info.

Rarst commented 2 years ago

No objection, tests say you broke json though. :)

GaryJones commented 2 years ago

I opened 30 PRs like these - and yours happened to be towards the end, so it was a silly mistake. Extra comma removed, so you'll probably want to squash these commits on merge.