Files
genesis-simple-sidebars/vendor/wp-coding-standards/wpcs/WordPress/ruleset.xml
T
2019-05-07 08:54:54 -04:00

88 lines
2.9 KiB
XML

<?xml version="1.0"?>
<ruleset name="WordPress" namespace="WordPress">
<description>WordPress Coding Standards</description>
<autoload>./PHPCSAliases.php</autoload>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra">
<!-- Even though the VIP sniffs are not included in Extra, this will remove them from the scan. -->
<exclude name="WordPress.VIP"/>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions">
<!-- From "VIP": The obfuscation group is excluded as there are plenty of legitimate uses for the base64 functions. -->
<properties>
<property name="exclude" type="array" value="obfuscation"/>
</properties>
</rule>
<!--
#############################################################################
Account for deprecated sniffs.
These directives can be removed when the deprecated sniffs are removed.
#############################################################################
-->
<!-- Prevent deprecation notice when the sniff is not explicitly included. -->
<rule ref="WordPress.WP.PreparedSQL.DeprecatedSniff">
<severity>0</severity>
</rule>
<!-- Prevent duplicate messages from deprecated sniff. -->
<rule ref="WordPress.WP.PreparedSQL.NotPrepared">
<severity>0</severity>
</rule>
<!-- Prevent deprecation notice when the sniff is not explicitly included. -->
<rule ref="WordPress.Functions.DontExtract.DeprecatedSniff">
<severity>0</severity>
</rule>
<!-- Prevent duplicate messages from deprecated sniff. -->
<rule ref="WordPress.Functions.DontExtract.extract_extract">
<severity>0</severity>
</rule>
<!-- Prevent deprecation notice when the sniff is not explicitly included. -->
<rule ref="WordPress.CSRF.NonceVerification.DeprecatedSniff">
<severity>0</severity>
</rule>
<!-- Prevent duplicate messages from deprecated sniff. -->
<rule ref="WordPress.CSRF.NonceVerification.NoNonceVerification">
<severity>0</severity>
</rule>
<!-- Prevent deprecation notice when the sniff is not explicitly included. -->
<rule ref="WordPress.XSS.EscapeOutput.DeprecatedSniff">
<severity>0</severity>
</rule>
<!-- Prevent duplicate messages from deprecated sniff. -->
<rule ref="WordPress.XSS.EscapeOutput.OutputNotEscaped">
<severity>0</severity>
</rule>
<rule ref="WordPress.XSS.EscapeOutput.OutputNotEscapedShortEcho">
<severity>0</severity>
</rule>
<rule ref="WordPress.XSS.EscapeOutput.UnsafePrintingFunction">
<severity>0</severity>
</rule>
<rule ref="WordPress.XSS.EscapeOutput.DeprecatedCustomSanitizingFunctions">
<severity>0</severity>
</rule>
<!-- Prevent deprecation notice when the sniff is not explicitly included. -->
<rule ref="WordPress.Variables.GlobalVariables.DeprecatedSniff">
<severity>0</severity>
</rule>
<!-- Prevent duplicate messages from deprecated sniff. -->
<rule ref="WordPress.Variables.GlobalVariables.OverrideProhibited">
<severity>0</severity>
</rule>
</ruleset>