From b2a65b135dd520279689ebe716eb36d36d03aa57 Mon Sep 17 00:00:00 2001 From: George Stephanis Date: Thu, 24 Sep 2026 10:28:04 -0400 Subject: [PATCH] Fix PHPCS CI failure: exclude WP-CLI class from VIP-Go base-class rule The `WordPressVIPMinimum.Classes.RestrictedExtendClasses` rule flags `Two_Factor_CLI_Command extends WP_CLI_Command`, recommending `WPCOM_VIP_CLI_Command` instead. That base class only exists on VIP-managed hosting, so it doesn't apply to a generic wordpress.org plugin -- WP_CLI_Command is the correct base class here. This warning is currently failing the "Lint PHP & PHP Compatibility checks" CI job, since the repo's `composer lint` script runs plain phpcs with no warning-severity suppression. Co-Authored-By: Claude Sonnet 5 --- phpcs.xml.dist | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 987b928c6..800e2bc0f 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -16,6 +16,15 @@ + + + CLI/*.php + + tests/*.php