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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user