From 5297a2b188efd148221ebd126ee87490d1536ab0 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 24 May 2026 17:42:41 -0500 Subject: [PATCH] fix(ci): suppress PHPCS warnings in Gate 1 (errors-only enforcement) PHPCS exits non-zero for warnings, causing Gate 1 to fail even with 0 errors. Use --warning-severity=0 so only actual errors block CI. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- .mokogitea/workflows/ci-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mokogitea/workflows/ci-platform.yml b/.mokogitea/workflows/ci-platform.yml index 4bde151..d068ff4 100644 --- a/.mokogitea/workflows/ci-platform.yml +++ b/.mokogitea/workflows/ci-platform.yml @@ -115,7 +115,7 @@ jobs: - name: "PHPCS (PSR-12)" run: | - vendor/bin/phpcs --standard=phpcs.xml --report=summary lib/ validate/ automation/ 2>&1 || { + vendor/bin/phpcs --standard=phpcs.xml --report=summary --warning-severity=0 lib/ validate/ automation/ 2>&1 || { echo "::error::PHPCS found coding standard violations" echo "### PHPCS" >> $GITHUB_STEP_SUMMARY echo "Coding standard violations detected. Run \`composer phpcs\` locally." >> $GITHUB_STEP_SUMMARY