From 997f50b890fc9388edb6e4537a53cf5f0a050d8d Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 12 Apr 2026 22:56:19 +0700 Subject: [PATCH] fix: use .phpcs.xml.dist config in CI instead of inline flags The CI was overriding the project PHPCS config by passing --standard=WordPress-Core directly. Now uses the project .phpcs.xml.dist which includes exclusions for standard WP patterns (class in functions.php). Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy.yml | 8 +------- .phpcs.xml.dist | 6 ++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 90327e0..046563f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,13 +25,7 @@ jobs: - name: Run PHPCS (WordPress Core) run: | - ~/.composer/vendor/bin/phpcs \ - --standard=WordPress-Core \ - --extensions=php \ - --ignore=vendor/,node_modules/,tests/ \ - --warning-severity=0 \ - -s \ - . + ~/.composer/vendor/bin/phpcs -s . - name: JS Syntax Check run: | diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index 3c2a37e..b60b9df 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -5,6 +5,12 @@ . + + + + + + /vendor/* /node_modules/*