From f9dadf528a999131e4286d654ecd11345c1998a9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 12:28:10 +0000 Subject: [PATCH 1/3] Initial plan From 61a58433549d639cf19223f209dd32ce44ac533a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 12:38:39 +0000 Subject: [PATCH 2/3] feat: add SlevomatCodingStandard UnusedUses sniff to detect unused PHP use statements - Add slevomat/coding-standard ^7.0 as a dependency - Add SlevomatCodingStandard.Namespaces.UnusedUses rule to WP_CLI_CS/ruleset.xml with searchAnnotations=true and MismatchingCaseSensitivity excluded - Remove genuinely unused use statement: Behat\Behat\Exception\PendingException from src/Context/Support.php Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com> --- WP_CLI_CS/ruleset.xml | 20 ++++++++++++++++++++ composer.json | 1 + src/Context/Support.php | 1 - 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/WP_CLI_CS/ruleset.xml b/WP_CLI_CS/ruleset.xml index 1b2da5c98..f3dfadf5b 100644 --- a/WP_CLI_CS/ruleset.xml +++ b/WP_CLI_CS/ruleset.xml @@ -84,6 +84,26 @@ + + + + + + + + + + +