From 429703064d7d4a2578218861a445ebb8d5b6d030 Mon Sep 17 00:00:00 2001 From: peptiderepo <273788462+peptiderepo@users.noreply.github.com> Date: Tue, 14 Apr 2026 17:54:00 +0700 Subject: [PATCH] ci: install phpcsextra for WPCS 3.x Universal/NormalizedArrays sniffs Agent-Session: cowork-ci-parity-20260414 --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b05ccda..eb7251d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,8 +57,13 @@ jobs: run: | # Allow the PHPCS composer-installer plugin (auto-registers standards). composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true - composer global require "wp-coding-standards/wpcs:^3.0" "phpcsstandards/phpcsutils:^1.0" --no-interaction - phpcs --config-set installed_paths "$(composer global config home)/vendor/wp-coding-standards/wpcs" + # WPCS 3.x requires PHPCSExtra (for the Universal.* and NormalizedArrays.* sniffs) + # AND phpcsutils. Installing the installer itself lets it auto-register the standards path. + composer global require --no-interaction \ + "dealerdirect/phpcodesniffer-composer-installer:^1.0" \ + "wp-coding-standards/wpcs:^3.0" \ + "phpcsstandards/phpcsutils:^1.0" \ + "phpcsstandards/phpcsextra:^1.0" - name: Run PHPCS run: | phpcs --standard=WordPress-Core \