Skip to content

Commit

Permalink
Coding Standards: Exclude all test PHP files, not just test classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
costdev committed Dec 19, 2024
1 parent bc6b8d7 commit 920a3c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@

<!-- Exclude test classes from naming conventions. -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>/tests/phpunit/tests/*</exclude-pattern>
<exclude-pattern>/tests/phpunit/*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>/tests/phpunit/tests/*</exclude-pattern>
<exclude-pattern>/tests/phpunit/*</exclude-pattern>
</rule>

<!-- Exclude test files from overriding globals sniff. -->
Expand Down

0 comments on commit 920a3c2

Please sign in to comment.