Skip to content

Address new sniffs in WPCS 0.12.0#4241

Merged
gitlost merged 6 commits intowp-cli:masterfrom
chriszarate:wpcs-0.12-0-fixes
Jul 24, 2017
Merged

Address new sniffs in WPCS 0.12.0#4241
gitlost merged 6 commits intowp-cli:masterfrom
chriszarate:wpcs-0.12-0-fixes

Conversation

@chriszarate
Copy link
Copy Markdown
Contributor

Some new sniffs that shipped in WPCS 0.12.0 raise errors on existing code. This PR updates code so that it will pass checks with PHPCS 0.12.0.

It adds one new sniff to the ignore list in phpcs.ruleset.xml: WordPress.WP.CapitalPDangit. Otherwise, the following line would raise an error, which seems like a spurious objection:

https://github.com/wp-cli/wp-cli/blob/master/php/utils-wp.php#L299

Copy link
Copy Markdown
Contributor

@gitlost gitlost left a comment

Choose a reason for hiding this comment

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

Thanks v much @chriszarate - was going to do it myself but couldn't get phpcs working locally! The WordPress.WP.CapitalPDangit rule is silly...

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.

3 participants