-
Notifications
You must be signed in to change notification settings - Fork 9
/
ruleset.xml
31 lines (19 loc) · 1.47 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Onepix" namespace="WordPressCS\WordPress" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Onepix WordPress Coding Standards</description>
<rule ref="WordPress">
<exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped"/>
<exclude name="WordPress.Security.EscapeOutput.UnsafePrintingFunction"/>
<exclude name="WordPress.Security.ValidatedSanitizedInput.MissingUnslash"/>
<exclude name="WordPress.PHP.DisallowShortTernary.Found"/>
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.Security.NonceVerification.Recommended"/>
<exclude name="WordPress.Security.ValidatedSanitizedInput.InputNotSanitized"/> <!-- @ToDo add support of WooCommerce cleaning functions such as wc_clean-->'
<exclude name="WordPress.Security.NonceVerification.Missing"/> <!-- Rule does not work with custom functions for verification -->
<exclude name="WordPress.Security.SafeRedirect.wp_redirect_wp_redirect"/>
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.Missing"/>
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed"/>
<exclude name="Universal.Operators.DisallowShortTernary.Found"/>
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped"/>
</rule>
</ruleset>