-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathphpcs.ruleset.xml
34 lines (32 loc) · 1.22 KB
/
phpcs.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
32
33
34
<?xml version="1.0"?>
<ruleset name="WP Redis">
<description>Sniffs for the coding standards of the WP Redis plugin</description>
<exclude-pattern>vendor</exclude-pattern>
<rule ref="WordPress-VIP">
<exclude name="WordPress.NamingConventions.ValidVariableName" />
<exclude name="Squiz.PHP.CommentedOutCode" />
<exclude name="WordPress.CSRF.NonceVerification" />
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing" />
<exclude name="WordPress.VIP.DirectDatabaseQuery" />
<exclude name="WordPress.VIP.SlowDBQuery" />
<exclude name="WordPress.VIP.SuperGlobalInputUsage" />
<exclude name="WordPress.VIP.ValidatedSanitizedInput" />
<exclude name="WordPress.VIP.RestrictedFunctions.error_log" />
<exclude name="WordPress.VIP.RestrictedFunctions.serialize" />
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions">
<properties>
<property name="exclude" value="error_log" />
</properties>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions">
<properties>
<property name="exclude" type="array" value="serialize,unserialize" />
</properties>
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false" />
</properties>
</rule>
</ruleset>