Skip to content

Commit

Permalink
ignore separate functions and OO rule for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reykjalin committed Mar 21, 2024
1 parent b6301d6 commit 7f9455e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@

<rule ref="Squiz.Commenting.FunctionCommentThrowTag.Missing" />

<rule ref="Universal.Files.SeparateFunctionsFromOO.Mixed">
<exclude-pattern>tests/</exclude-pattern>
</rule>

<!-- We don't need to do nonce checks in unit test code -->
<rule ref="WordPress.Security.NonceVerification.Recommended">
<exclude-pattern>tests/</exclude-pattern>
Expand Down

0 comments on commit 7f9455e

Please sign in to comment.