-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathphpcs.xml
More file actions
22 lines (22 loc) · 776 Bytes
/
phpcs.xml
File metadata and controls
22 lines (22 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<ruleset name="Project Rules">
<rule ref="10up-Default" />
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property name="customAutoEscapedFunctions" type="array">
<element value="get_simple_local_avatar"/> <!-- wrapper for safe get_avatar() -->
</property>
</properties>
</rule>
<rule ref="WordPress.Security.ValidatedSanitizedInput">
<properties>
<property name="customSanitizingFunctions" type="array">
<element value="wp_verify_nonce"/> <!-- Character by character comparison, sanitization may "fix" a mismatch. -->
</property>
</properties>
</rule>
<file>.</file>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
</ruleset>