CodeIgniter / coding-standard

Official Coding Standards for CodeIgniter
MIT License
66 stars 9 forks source link

Add "static analysis" Composer keyword #2

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.

The "phpcs" keyword is to match other coding-standards packages.

GaryJones commented 2 years ago

The Unit Tests workflow appears to have been broken since about 6 months ago, so doesn't seem related to the composer.json keyword change in this PR.

MGatner commented 2 years ago

Thanks @GaryJones! Very cool new feature. I see you've spent a lot of effort on this across many repos: thanks for that effort. I will take this to the team and make sure we get it handled - we have a number of other repos that would benefit.

paulbalandan commented 2 years ago

Thank you, @GaryJones