Skip to content

Consider changing Composer package type to "phpcodesniffer-standard"#3

Open
rodrigoprimo wants to merge 1 commit intoFroiden:masterfrom
rodrigoprimo:fix/composer-type-phpcodesniffer-standard
Open

Consider changing Composer package type to "phpcodesniffer-standard"#3
rodrigoprimo wants to merge 1 commit intoFroiden:masterfrom
rodrigoprimo:fix/composer-type-phpcodesniffer-standard

Conversation

@rodrigoprimo
Copy link

This PR suggests changing the Composer package type to enable automatic standard registration via the PHPCSStandards Composer installer plugin.

Problem/Motivation

Composer allows declaring a package's type. This package currently uses "php-code-sniffer" as its type.

There is a Composer plugin that can install custom PHP_CodeSniffer standards: https://github.com/PHPCSStandards/composer-installer

This plugin is part of the PHPCSStandards organisation, which is the new official home of PHP_CodeSniffer.

For this installer to work, the package type needs to be set to phpcodesniffer-standard.

There are already over 470 packages that use this type. As a side benefit, using this type will allow end-users to more easily find other external PHP_CodeSniffer standards that may be interesting to them when searching on Packagist.

Proposed changes

Change the type in composer.json from "php-code-sniffer" to "phpcodesniffer-standard".

This will in no way change the existing behavior of this package for users that do not include the Composer plugin mentioned above in their projects' composer.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments