fix(ci): move ignore_warnings_on_exit into phpcs.xml.dist to unblock pipeline

--runtime-set ignore_warnings_on_exit 1 in ci.yml was not taking effect;
pipeline has been failing on PHPCS warnings since run #76 despite all
violations being intentionally downgraded to <type>warning</type>.

Fix: add <config name="ignore_warnings_on_exit" value="1"/> directly
to .phpcs.xml.dist so it is applied at the ruleset level.
This commit is contained in:
peptiderepo
2026-04-24 06:19:06 +00:00
parent 83a5c3b5ca
commit 6988a1fe7b
2 changed files with 4 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ jobs:
run: composer install --prefer-dist --no-progress
- name: Run PHPCS
run: vendor/bin/phpcs --standard=.phpcs.xml.dist --runtime-set ignore_warnings_on_exit 1
run: vendor/bin/phpcs --standard=.phpcs.xml.dist
# ── PHPUnit Tests ────────────────────────────────────────────────
phpunit:

View File

@@ -87,4 +87,7 @@
<!-- Minimum WP version supported -->
<config name="minimum_wp_version" value="5.8"/>
<!-- Warnings are informational — do not fail CI on warnings-only runs -->
<config name="ignore_warnings_on_exit" value="1"/>
</ruleset>