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

@@ -5,6 +5,12 @@
<!-- Scan these files -->
<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-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>