Skip to content

Commit d90e4e3

Browse files
committed
PHPCS: Update ruleset to exclude classes from PrefixAllGlobals.NonPrefixedClassFound sniff
Fix CS in Site command
1 parent 8595f9f commit d90e4e3

File tree

5 files changed

+182
-137
lines changed

5 files changed

+182
-137
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
</rule>
5959

6060
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound">
61+
<exclude-pattern>*/src/Site(_Meta|_Option)?_Command\.php$</exclude-pattern>
6162
<exclude-pattern>*/src/Term(_Meta)?_Command\.php$</exclude-pattern>
6263
<exclude-pattern>*/src/User(_Meta|_Session|_Term)?_Command\.php$</exclude-pattern>
6364
</rule>

0 commit comments

Comments
 (0)