Skip to content

Commit

Permalink
Exclude file and class name sniffs for PHPUnit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed Aug 10, 2022
1 parent c3f19c4 commit a8504c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,14 @@
<!-- Ignore filename error since it requires WP core build process change -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>./packages/block-serialization-default-parser/parser.php</exclude-pattern>
<exclude-pattern>/phpunit/*</exclude-pattern>
</rule>

<!-- Exclude PHPUnit tests from file and class name sniffs (for Core parity). -->
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>/phpunit/*</exclude-pattern>
</rule>
<rule ref="PEAR.NamingConventions.ValidClassName.Invalid">
<exclude-pattern>/phpunit/*</exclude-pattern>
</rule>
</ruleset>

0 comments on commit a8504c9

Please sign in to comment.