From 4cdeee9db600c225a7a8167904423eb4cab7acd3 Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 29 Jan 2024 14:18:48 -0500 Subject: [PATCH] chore: Remove NOSCAN directive in favor of phpcs:ignore. --- includes/WPGraphQLContentBlocks.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/WPGraphQLContentBlocks.php b/includes/WPGraphQLContentBlocks.php index ac6d70e5..80e78bdc 100644 --- a/includes/WPGraphQLContentBlocks.php +++ b/includes/WPGraphQLContentBlocks.php @@ -150,10 +150,9 @@ static function () { require_once WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR . 'includes/updates/update-functions.php'; require_once WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR . 'includes/updates/update-callbacks.php'; - // Tell SonarQube to ignore the following line. The library bootstraps itself, hence no need to instantiate to a variable. - // BEGIN-NOSCAN - new \EnforceSemVer\EnforceSemVer( WPGRAPHQL_CONTENT_BLOCKS_PATH ); - // END-NOSCAN + // phpcs:ignore SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable -- Library bootstraps itself, hence variable is unused. + $semver = new \EnforceSemVer\EnforceSemVer( WPGRAPHQL_CONTENT_BLOCKS_PATH ); + return true; }