-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathphpcs.xml
More file actions
32 lines (27 loc) · 1 KB
/
phpcs.xml
File metadata and controls
32 lines (27 loc) · 1 KB
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
<?xml version="1.0"?>
<ruleset name="Project Rules">
<rule ref="WordPress-Core" />
<rule ref="WordPress.DB"/>
<rule ref="WordPress.Security"/>
<rule ref="WordPressVIPMinimum">
<!-- Caching warning is very out of date -->
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.get_posts_get_posts"/>
<!-- General purpose plugin, not used exclusively on VIP. -->
<exclude name="WordPressVIPMinimum.Classes.RestrictedExtendClasses.wp_cli"/>
</rule>
<rule ref="WordPress.Security.ValidatedSanitizedInput">
<properties>
<property name="customSanitizingFunctions" type="array">
<element value="srm_sanitize_redirect_from"/>
<element value="srm_sanitize_redirect_to"/>
</property>
</properties>
</rule>
<arg name="extensions" value="php" />
<arg value="s"/>
<file>.</file>
<exclude-pattern>*/docs-built/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>