Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some small improvements to the initial dev setup #6

Merged
merged 3 commits into from
Dec 26, 2019

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 26, 2019

Composer: set minimum PHPCS 3.x version to ^3.1.0

When installed_paths is set via a custom, the PHPCS native autoloader cannot find non-sniff files provided by an external standard, including the PHPCSUtils files.

As PHPCS 3.0.2 is rarely used anymore anyway, let's just not support it.

Ref: squizlabs/PHP_CodeSniffer#1591

Composer: make the version requirement for the Composer PHPCS plugin more flexible

... to prevent conflicts with projects, be it external standards or end-user projects, which require the plugin themselves as well.

Note: Composer treat minors before 1.0.0 as majors, so each supported minor needs to be explicitly allowed.

Note: Version 0.4.0 is excluded from being installed due to a bug which made it far less usable.

Ref: https://github.com/Dealerdirect/phpcodesniffer-composer-installer/releases

Composer: remove the security-advisories dev dependency

... as it would block unit testing this repo on old PHPCS versions.

When `installed_paths` is set via a custom, the PHPCS native autoloader cannot find non-sniff files provided by an external standard, including the PHPCSUtils files.

As PHPCS 3.0.2 is rarely used anymore anyway, let's just not support it.

Ref: squizlabs/PHP_CodeSniffer#1591
…more flexible

... to prevent conflicts with projects, be it external standards or end-user projects, which require the plugin themselves as well.

Note: Version `0.4.0` is excluded from being installed due to a [bug](PHPCSStandards/composer-installer#33) which made it far less usable.

Ref: https://github.com/Dealerdirect/phpcodesniffer-composer-installer/releases
... as it would block unit testing this repo on old PHPCS versions.
@jrfnl jrfnl added this to the 1.0.0 milestone Dec 26, 2019
@jrfnl jrfnl changed the base branch from master to develop December 26, 2019 16:51
@jrfnl jrfnl merged commit 39c5671 into develop Dec 26, 2019
@jrfnl jrfnl deleted the feature/improve-initial-dev-setup branch December 26, 2019 16:55
@jrfnl jrfnl modified the milestones: 1.0.0, 1.0.0-alpha1 May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant