Skip to content

Commit

Permalink
chore: Remove NOSCAN directive in favor of phpcs:ignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindctrl committed Jan 29, 2024
1 parent 7440723 commit 4cdeee9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions includes/WPGraphQLContentBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4cdeee9

Please sign in to comment.