Skip to content

Commit

Permalink
Coding Standards: Add mkdir() and rmdir() exceptions for test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
costdev committed Jan 10, 2025
1 parent cf34bbd commit 500676e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<rule ref="WordPress.PHP.NoSilencedErrors.Discouraged">
<exclude-pattern>includes/class-filesystem-direct\.php</exclude-pattern>
</rule>

<!-- Exclude test classes from naming conventions. -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>/tests/phpunit/*</exclude-pattern>
Expand All @@ -99,4 +99,10 @@
<rule ref="WordPress.WP.AlternativeFunctions.unlink_unlink">
<exclude-pattern>/tests/phpunit/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_system_operations_mkdir">
<exclude-pattern>/tests/phpunit/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_system_operations_rmdir">
<exclude-pattern>/tests/phpunit/*</exclude-pattern>
</rule>
</ruleset>

0 comments on commit 500676e

Please sign in to comment.