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

Reinstate PHPCS and update VIP sniffs #541

Merged
merged 8 commits into from
Oct 16, 2018
Merged

Reinstate PHPCS and update VIP sniffs #541

merged 8 commits into from
Oct 16, 2018

Conversation

philipjohn
Copy link
Contributor

This PR re-instates the PHPCS sniffs via Travis. It also includes the new VIP Coding Standards repo and runs the newer WordPress-VIP-Go standard.

Fixes #540

Removes SNIFF variable (commented out!) from previous PHP versions and adds it to the most recent PHP version.
Includes the new VIP-Coding-Standards repo and ensures we're running phpcs with the newer WordPress-VIP-Go ruleset.
We need to clone the VIP Coding Standards into it's own directory otherwise it conflicts with the WP coding standards
We don't need to check things like the entire vendor folder and compiled assets so let's skip them in PHPCS.
@philipjohn
Copy link
Contributor Author

The only failures here are because the PHPCS check (now added back) is flagging some issues. We don't need to address those in this PR. They should (hopefully) be addressed in #486

Copy link

@rogertheriault rogertheriault left a comment

Choose a reason for hiding this comment

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

Looks good.

@philipjohn philipjohn merged commit ddfb1c6 into master Oct 16, 2018
@philipjohn philipjohn deleted the fix/phpcs-travis branch October 16, 2018 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants