Skip to content

Commit

Permalink
Compatibility/Zoninator: remove the sniff
Browse files Browse the repository at this point in the history
* Remove the sniff.
* Remove the related test in the `WordPressVIPMinimum/ruleset-test.inc` file.
* Remove the related test in the `WordPress-VIP-Go/ruleset-test.inc` file.
  • Loading branch information
jrfnl authored and GaryJones committed Aug 24, 2023
1 parent 8475640 commit c16c3fe
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 152 deletions.
4 changes: 2 additions & 2 deletions WordPress-VIP-Go/ruleset-test.inc
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ class MyWidget extends WP_Widget {
class BadTestClass extends WP_CLI_Command { // Warning.
}

// WordPressVIPMinimum.Compatibility.ZoninatorSniff
wpcom_vip_load_plugin( 'zoninator', 'plugins', '0.8' ); // Warning.



// WordPressVIPMinimum.Constants.ConstantString
define( WPCOM_VIP ); // Error.
Expand Down
1 change: 0 additions & 1 deletion WordPress-VIP-Go/ruleset-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
269 => 1,
273 => 1,
322 => 1,
326 => 1,
332 => 1,
392 => 1,
394 => 1,
Expand Down
90 changes: 0 additions & 90 deletions WordPressVIPMinimum/Sniffs/Compatibility/ZoninatorSniff.php

This file was deleted.

13 changes: 0 additions & 13 deletions WordPressVIPMinimum/Tests/Compatibility/ZoninatorUnitTest.inc

This file was deleted.

43 changes: 0 additions & 43 deletions WordPressVIPMinimum/Tests/Compatibility/ZoninatorUnitTest.php

This file was deleted.

4 changes: 2 additions & 2 deletions WordPressVIPMinimum/ruleset-test.inc
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ class MyWidget extends WP_Widget {
// WordPressVIPMinimum.Classes.RestrictedExtendClasses
class BadTestClass extends WP_CLI_Command { } // Warning.

// WordPressVIPMinimum.Compatibility.ZoninatorSniff
wpcom_vip_load_plugin( 'zoninator', 'plugins', '0.8' ); // Warning.



// WordPressVIPMinimum.Constants.ConstantString
define( WPCOM_VIP ); // Error.
Expand Down
1 change: 0 additions & 1 deletion WordPressVIPMinimum/ruleset-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@
256 => 1,
264 => 2,
279 => 1,
282 => 1,
288 => 1,
293 => 1,
294 => 1,
Expand Down

0 comments on commit c16c3fe

Please sign in to comment.