-
Notifications
You must be signed in to change notification settings - Fork 848
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
provision phpcs + wp sniffs via composer #1169
Conversation
aa793a2
to
b173300
Compare
(Anecdotal, but I merged this patch on my machine and it appears to also address the phpcs provisioning issue at #1179.) |
|
@thebrandonallen made the change to phpcs 2.x |
provision/phpcs/composer.json
Outdated
"type": "project", | ||
"require": { | ||
"oomphinc/composer-installers-extender": "^1.1", | ||
"squizlabs/php_codesniffer": "2.*", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
9ef72e0
to
7d72fae
Compare
7d72fae
to
e85e318
Compare
squashed everything (not best practice, i know). |
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.