From ca4c29008261413b23beeebf2913dd16659ccc96 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 26 Sep 2015 15:51:52 +0100 Subject: [PATCH] Re-enable MediaWiki.VariableAnalysis.UnusedGlobalVariables Globals are used in included file, so ignore warning in this case Change-Id: I50315425827cc49eac3ca943a5a8952d0292ce23 --- includes/installer/Installer.php | 2 ++ phpcs.xml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 72e11dbb7e..d98ca797ea 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -538,9 +538,11 @@ abstract class Installer { global $wgAutoloadClasses; $wgAutoloadClasses = array(); + // @codingStandardsIgnoreStart // LocalSettings.php should not call functions, except wfLoadSkin/wfLoadExtensions // Define the required globals here, to ensure, the functions can do it work correctly. global $wgExtensionDirectory, $wgStyleDirectory; + // @codingStandardsIgnoreEnd MediaWiki\suppressWarnings(); $_lsExists = file_exists( "$IP/LocalSettings.php" ); diff --git a/phpcs.xml b/phpcs.xml index f34b274edb..f5156b3b6e 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -9,7 +9,6 @@ - -- 2.20.1