Skip to content

Commit 61d08c9

Browse files
Copilotswissspidy
andcommitted
Update phpcs configuration for new validator classes
Add exclusions for PackageValidator, ValidatingPluginUpgrader, ValidatingThemeUpgrader, and UpgraderWithValidation from namespace prefix rules Co-authored-by: swissspidy <[email protected]>
1 parent c3bd788 commit 61d08c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound">
6060
<exclude-pattern>*/src/WP_CLI/Fetchers/(Plugin|Theme)\.php$</exclude-pattern>
6161
<exclude-pattern>*/src/WP_CLI/CommandWithUpgrade\.php$</exclude-pattern>
62-
<exclude-pattern>*/src/WP_CLI/(CommandWith|DestructivePlugin|DestructiveTheme)Upgrader\.php$</exclude-pattern>
62+
<exclude-pattern>*/src/WP_CLI/(CommandWith|DestructivePlugin|DestructiveTheme|ValidatingPlugin|ValidatingTheme|PackageValidator|UpgraderWithValidation).*\.php$</exclude-pattern>
6363
<exclude-pattern>*/src/WP_CLI/Parse(Plugin|Theme)NameInput\.php$</exclude-pattern>
6464
</rule>
6565

0 commit comments

Comments
 (0)