Skip to content

Commit

Permalink
Add PHPCS exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jan 9, 2024
1 parent 18790ca commit f21e20c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
#############################################################################
SELECTIVE EXCLUSIONS
Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs.
These exclusions are listed ordered by alphabetic sniff name.
#############################################################################
-->
Expand Down Expand Up @@ -281,6 +281,10 @@
<exclude-pattern>/tests/phpunit/tests/db/charset\.php</exclude-pattern>
</rule>

<rule ref="WordPress.DB.RestrictedClasses">
<exclude-pattern>/src/wp-includes/sqlite/*\.php</exclude-pattern>
</rule>

<!-- Allow the WP DB related tests for issues with prepared SQL placeholders
(as the handling of those are being tested). -->
<rule ref="WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare">
Expand Down

0 comments on commit f21e20c

Please sign in to comment.