Skip to content

Commit 1d180ae

Browse files
committed
Exclude benchmarks from phpcs
1 parent f52bb42 commit 1d180ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

phpcs.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@
286286

287287
<rule ref="PEAR.NamingConventions.ValidClassName.Invalid">
288288
<exclude-pattern>/tests/phpunit/tests/*</exclude-pattern>
289+
<exclude-pattern>/tests/benchmarks/benchmarks/*</exclude-pattern>
289290
<!-- Exclude some old classes that cannot be renamed, as it would break back compat. -->
290291
<exclude-pattern>/src/wp-admin/includes/class-wp-filesystem-ftpsockets\.php</exclude-pattern>
291292
<exclude-pattern>/src/wp-includes/class-wp-oembed\.php</exclude-pattern>
@@ -328,6 +329,7 @@
328329
<!-- Exclude the unit tests from the file name rules. -->
329330
<rule ref="WordPress.Files.FileName">
330331
<exclude-pattern>/tests/phpunit/*</exclude-pattern>
332+
<exclude-pattern>/tests/benchmarks/benchmarks/*</exclude-pattern>
331333
</rule>
332334

333335
<!-- WPCS1620: template.php isn't a template tag file. -->

0 commit comments

Comments
 (0)