From 8c68dc2a30aeb8b299513e85ae74b18cb16001d9 Mon Sep 17 00:00:00 2001
From: jrfnl <663378+jrfnl@users.noreply.github.com>
Date: Sun, 15 Apr 2018 14:03:28 +0300
Subject: [PATCH] WPCS ruleset: Remove reference to GlobalVariables sniff

This sniff is not included in the `WordPress-Core` ruleset as Core writing to Core global variables is fine (of course).
Passing the custom properties which are needed by themes and plugins, activates the sniff needlessly.
---
 phpcs.xml.dist | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 9bcb15b3ef..e119e13d08 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -82,11 +82,6 @@
 			<property name="custom_test_class_whitelist" type="array" value="WP_UnitTestCase,WP_Ajax_UnitTestCase,WP_Canonical_UnitTestCase,WP_Test_REST_TestCase,WP_Test_REST_Controller_Testcase,WP_Test_REST_Post_Type_Controller_Testcase,WP_XMLRPC_UnitTestCase"/>
 		</properties>
 	</rule>
-	<rule ref="WordPress.Variables.GlobalVariables">
-		<properties>
-			<property name="custom_test_class_whitelist" type="array" value="WP_UnitTestCase,WP_Ajax_UnitTestCase,WP_Canonical_UnitTestCase,WP_Test_REST_TestCase,WP_Test_REST_Controller_Testcase,WP_Test_REST_Post_Type_Controller_Testcase,WP_XMLRPC_UnitTestCase"/>
-		</properties>
-	</rule>
 
 	<!-- Exclude the unit tests from select sniffs. -->
 	<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
-- 
2.16.2.windows.1

