Skip to content

Commit c354dc7

Browse files
committed
Whitelist unprefixed class name
1 parent 4fbb56b commit c354dc7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎phpcs.xml.dist‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,15 @@
5151
</properties>
5252
</rule>
5353

54+
<!--
55+
#############################################################################
56+
SELECTIVE EXCLUSIONS
57+
#############################################################################
58+
-->
59+
60+
<!-- Exclude existing classes from the prefix rule as it would break BC to prefix them now. -->
61+
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound">
62+
<exclude-pattern>*/src/Shell_Command\.php$</exclude-pattern>
63+
</rule>
64+
5465
</ruleset>

0 commit comments

Comments
 (0)