Skip to content

Commit d0f00b5

Browse files
committed
Coding Standards: Add exceptions for WordPress.Files.FileName.NotHyphenatedLowercase.
See #45934. git-svn-id: https://develop.svn.wordpress.org/trunk@44564 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6f0487c commit d0f00b5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

phpcs.xml.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@
111111
<exclude-pattern>/src/wp-includes/template\.php</exclude-pattern>
112112
</rule>
113113

114+
<!-- WPCS1621: These files are expected to use _ instead of -. -->
115+
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
116+
<exclude-pattern>/src/_index\.php</exclude-pattern>
117+
<exclude-pattern>/src/wp-admin/_index\.php</exclude-pattern>
118+
<exclude-pattern>/src/wp-content/themes/twentythirteen/taxonomy-post_format\.php</exclude-pattern>
119+
<exclude-pattern>/src/wp-content/themes/twentyfourteen/taxonomy-post_format\.php</exclude-pattern>
120+
</rule>
121+
114122
<!-- Whitelist test classes for select sniffs. -->
115123
<rule ref="WordPress.Files.FileName">
116124
<properties>

0 commit comments

Comments
 (0)