Skip to content

Commit 72d03aa

Browse files
Remove unnecessary exceptions
Co-authored-by: Alain Schlesser <[email protected]>
1 parent 3ae8b5c commit 72d03aa

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

phpcs.xml.dist

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -44,37 +44,6 @@
4444
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
4545
<config name="testVersion" value="5.6-"/>
4646

47-
<!-- Verify that everything in the global namespace is either namespaced or prefixed.
48-
The default prefixes `WP_CLI` (for namespaces and classes) and `wpcli` (for variables) are inherited
49-
from the ruleset. This adds one additional allowed prefix specifically for hooks (though
50-
not automatically limited to them).
51-
See: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#naming-conventions-prefix-everything-in-the-global-namespace -->
52-
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
53-
<properties>
54-
<property name="prefixes" type="array" extend="true">
55-
<element value="cli_"/><!-- Hooks. -->
56-
</property>
57-
</properties>
58-
</rule>
59-
60-
<!-- Whitelist the Utils\mysql_host_to_cli_args() method.
61-
See: https://github.com/phpcompatibility/phpcompatibility#phpcompatibility-specific-options -->
62-
<rule ref="PHPCompatibility.Extensions.RemovedExtensions">
63-
<properties>
64-
<property name="functionWhitelist" type="array">
65-
<element value="mysql_host_to_cli_args"/>
66-
</property>
67-
</properties>
68-
</rule>
69-
70-
<!-- Allow for back-compat conversion comments to be explained in logical shorthand.
71-
See: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties#squizphpcommentedoutcode -->
72-
<rule ref="Squiz.PHP.CommentedOutCode">
73-
<properties>
74-
<property name="maxPercentage" value="45"/>
75-
</properties>
76-
</rule>
77-
7847
<!--
7948
#############################################################################
8049
SELECTIVE EXCLUSIONS

0 commit comments

Comments
 (0)