Skip to content

Composer: Add WPCS as a local dev dependency#4339

Merged
schlessera merged 2 commits intowp-cli:masterfrom
GaryJones:wpcs-as-local-dev-dependency
Sep 18, 2017
Merged

Composer: Add WPCS as a local dev dependency#4339
schlessera merged 2 commits intowp-cli:masterfrom
GaryJones:wpcs-as-local-dev-dependency

Conversation

@GaryJones
Copy link
Copy Markdown
Contributor

@GaryJones GaryJones commented Sep 8, 2017

If this package should be tested against PHPCS + WPCS, then these development dependencies should be available locally, and not rely on a contributor having it available globally, with what might be out of date versions.

WPCS is stable enough to facilitate a version of dev-develop, but I've stuck with the latest tag for now, so that new fixes can be applied in a controlled manner.

The DealerDirect Composer plugin allows the automatic registration of code standards that include the type of phpcodesniffer-standard, and is recommended by WPCS.

Replaces part of #4335.

@schlessera schlessera added scope:distribution Related to distribution scope:testing Related to testing labels Sep 8, 2017
@schlessera schlessera added this to the 1.4.0 milestone Sep 8, 2017
@schlessera
Copy link
Copy Markdown
Member

Huh! The DealerDirect Composer plugin breaks on PHP 5.3, which is the required minimum we're testing against.

@schlessera
Copy link
Copy Markdown
Member

@GaryJones
Copy link
Copy Markdown
Contributor Author

GaryJones commented Sep 8, 2017

The DealerDirect Composer plugin breaks on PHP 5.3, which is the required minimum we're testing against.

I'll see if I can do a PR to make it 5.3 compatible, since it only seems to be short array syntax that's the issue.

screenshot 2017-09-08 11 37 19

@GaryJones
Copy link
Copy Markdown
Contributor Author

PHPCSStandards/composer-installer#39 submitted.

If / when this is merged and released, I'll adjust the PR here to require 0.4.3 of the plugin.

@GaryJones GaryJones force-pushed the wpcs-as-local-dev-dependency branch from 357287c to 0a36c29 Compare September 15, 2017 08:54
@GaryJones
Copy link
Copy Markdown
Contributor Author

Rebased to avoid merge conflict.

If this package should be tested against PHPCS + WPCS, then these development dependencies should be available locally, and not rely on a contributor having it available globally, with what might be out of date versions.

WPCS is stable enough to facilitate a version of `dev-develop`, but I've stuck with the latest tag for now, so that new fixes can be applied in a controlled manner.

The DealerDirect Composer plugin allows the automatic registration of code standards that include the `type` of `phpcodesniffer-standard`, and is recommended by WPCS.
@Potherca
Copy link
Copy Markdown

FYI: The related merge-request(s) in dealerdirect/phpcodesniffer-composer-installer have just been released as v0.4.3.

@schlessera
Copy link
Copy Markdown
Member

schlessera commented Sep 18, 2017

@Potherca Thanks for letting us know!

@GaryJones , can you adapt the PR so that it requires a minimum of v0.4.3 ?

@GaryJones
Copy link
Copy Markdown
Contributor Author

can you adapt the PR so that it requires a minimum of v0.4.3

Will do :-)

@schlessera schlessera merged commit 4ea24a7 into wp-cli:master Sep 18, 2017
@GaryJones GaryJones deleted the wpcs-as-local-dev-dependency branch September 18, 2017 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:distribution Related to distribution scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants