Skip to content

Commit

Permalink
Meta: Disregard WordPress rules for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mundschenk-at committed Dec 25, 2024
1 parent 9a2f2ba commit 8e78e6d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
</properties>
</rule>

<!--
Disregard certain WordPress rules in tests.
-->
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>tests/**/*\.php</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<exclude-pattern>tests/**/*\.php</exclude-pattern>
</rule>

<!--
To get the optimal benefits of using WPCS, we should add a couple of
custom properties.
Expand Down

0 comments on commit 8e78e6d

Please sign in to comment.