fix: exclude UnfinishedPrepare from phpcs.xml.dist (dynamic WHERE builder)

WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare fires on the
dosing-repository builder-constructed WHERE clause where placeholders
are passed via spread but the SQL template uses {} not %s/%d.
PHPCS cannot statically verify the builder pattern; exclude at ruleset
level rather than relying on inline phpcs:ignore (which fires on the
wrong line number).

Agent-Session: claude/adopt-ci-20260616
This commit is contained in:
peptiderepo
2026-06-16 16:34:34 +00:00
parent 1d9d9d508c
commit 05d8094a1d

View File

@@ -37,5 +37,7 @@
<exclude name="WordPress.PHP.NoSilencedErrors.Discouraged"/>
<!-- Duplicate interface name: PHPCS false-positive scanning both interface definition sites -->
<exclude name="Generic.Classes.DuplicateClassName.Found"/>
<!-- Dynamic WHERE clause in dosing-repository; placeholders are builder-constructed -->
<exclude name="WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare"/>
</rule>
</ruleset>