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