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 <noreply@anthropic.com>
This commit is contained in:
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user