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

provision phpcs + wp sniffs via composer #1169

Merged

Conversation

cfoellmann
Copy link
Member

Relates to #922

Introduce composer installation of phpcs and the sniffs for WP and keep it in the right place.
Removes 2 git operations per provision.

@cfoellmann cfoellmann force-pushed the feature/phpcs-composer branch 2 times, most recently from aa793a2 to b173300 Compare April 2, 2017 14:59
@LoreleiAurora LoreleiAurora added this to the 2.0.1 milestone Apr 28, 2017
@travisseitler
Copy link

(Anecdotal, but I merged this patch on my machine and it appears to also address the phpcs provisioning issue at #1179.)

@tomjn tomjn requested a review from LoreleiAurora May 14, 2017 15:46
@thebrandonallen
Copy link
Contributor

"squizlabs/php_codesniffer": "*" will need to be changed to "squizlabs/php_codesniffer": "2.*", since the WordPress Coding Standards sniffs are not compatible with 3.0.

@cfoellmann
Copy link
Member Author

@thebrandonallen made the change to phpcs 2.x

"type": "project",
"require": {
"oomphinc/composer-installers-extender": "^1.1",
"squizlabs/php_codesniffer": "2.*",
Copy link

@tangrufus tangrufus May 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think requiring just wp-coding-standards/wpcs is enough, as wpcs requires squizlabs/php_codesniffer with correct versions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. Fix for the PR is coming

@cfoellmann cfoellmann force-pushed the feature/phpcs-composer branch from 9ef72e0 to 7d72fae Compare May 18, 2017 13:32
@cfoellmann cfoellmann force-pushed the feature/phpcs-composer branch from 7d72fae to e85e318 Compare May 18, 2017 13:41
@cfoellmann
Copy link
Member Author

squashed everything (not best practice, i know).
Works on my install. review would be nice.

@cfoellmann cfoellmann merged commit 91a2f61 into Varying-Vagrant-Vagrants:develop May 18, 2017
@cfoellmann cfoellmann deleted the feature/phpcs-composer branch May 18, 2017 15:55
@jeremyfelt jeremyfelt modified the milestone: 2.0.1 Sep 22, 2017
@jeremyfelt jeremyfelt modified the milestones: 2.0.1, 2.1 Nov 8, 2017
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.

7 participants