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

WPCS 2.0.0: Remove the deprecated VIP ruleset and sniffs #1551

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 18, 2018

The VIP ruleset and sniffs were deprecated in WPCS 1.0.0 and will now be removed for WPCS 2.0.0.

Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

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

1 verbiage nitpick, otherwise 👍

README.md Outdated Show resolved Hide resolved
The VIP ruleset and sniffs were deprecated in WPCS 1.0.0 and will now be removed for WPCS 2.0.0.
@jrfnl jrfnl force-pushed the feature/remove-deprecated-VIP-ruleset-sniffs branch from cd09c18 to 239ce3f Compare December 18, 2018 10:50
@@ -111,6 +111,6 @@ $bad = array( 'key1' => 'value1', 'key2' => 'value2' ); // Bad.
// @codingStandardsChangeSetting WordPress.Arrays.ArrayDeclarationSpacing allow_single_item_single_line_associative_arrays true

$foo = array(
'meta_key' => 'foo', // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key
'meta_value' => 'bar', // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_value
'meta_key' => 'foo', // phpcs:ignore Standard.Category.SniffName.ErrorCode
Copy link
Member

Choose a reason for hiding this comment

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

What's the deal with these placeholders?

Copy link
Member Author

@jrfnl jrfnl Dec 18, 2018

Choose a reason for hiding this comment

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

These are tests just to see whether the sniff handles the PHPCS ignore annotations correctly, they should never have referenced real sniffs.
As they did and the sniff they refer to is now being removed, it seemed right to clean up the test.

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.

3 participants