Skip to content

Conversation

@chriszarate
Copy link
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
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