Composer: Add WPCS as a local dev dependency#4339
Merged
schlessera merged 2 commits intowp-cli:masterfrom Sep 18, 2017
Merged
Conversation
schlessera
approved these changes
Sep 8, 2017
Member
|
Huh! The DealerDirect Composer plugin breaks on PHP 5.3, which is the required minimum we're testing against. |
Member
|
See error here: https://travis-ci.org/wp-cli/wp-cli/jobs/273239552#L212 |
Contributor
Author
Contributor
Author
|
PHPCSStandards/composer-installer#39 submitted. If / when this is merged and released, I'll adjust the PR here to require |
357287c to
0a36c29
Compare
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.
0a36c29 to
8478bc9
Compare
This was referenced Sep 15, 2017
|
FYI: The related merge-request(s) in |
Member
|
@Potherca Thanks for letting us know! @GaryJones , can you adapt the PR so that it requires a minimum of |
Contributor
Author
Will do :-) |
schlessera
approved these changes
Sep 18, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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
typeofphpcodesniffer-standard, and is recommended by WPCS.Replaces part of #4335.