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:
peptiderepo
2026-04-12 22:56:19 +07:00
parent 65b9f7a13c
commit 997f50b890
2 changed files with 7 additions and 7 deletions

View File

@@ -25,13 +25,7 @@ jobs:
- name: Run PHPCS (WordPress Core) - name: Run PHPCS (WordPress Core)
run: | run: |
~/.composer/vendor/bin/phpcs \ ~/.composer/vendor/bin/phpcs -s .
--standard=WordPress-Core \
--extensions=php \
--ignore=vendor/,node_modules/,tests/ \
--warning-severity=0 \
-s \
.
- name: JS Syntax Check - name: JS Syntax Check
run: | run: |

View File

@@ -5,6 +5,12 @@
<!-- Scan these files --> <!-- Scan these files -->
<file>.</file> <file>.</file>
<!-- Only check PHP files -->
<arg name="extensions" value="php"/>
<!-- Only report errors, not warnings -->
<arg name="warning-severity" value="0"/>
<!-- Exclude third-party and dev-only directories --> <!-- Exclude third-party and dev-only directories -->
<exclude-pattern>/vendor/*</exclude-pattern> <exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern> <exclude-pattern>/node_modules/*</exclude-pattern>