forked from 10up/distributor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
44 lines (35 loc) · 1.29 KB
/
phpcs.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
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<ruleset name="Project Rules">
<rule ref="10up-Default">
<!-- Undeprecated in WordPress 5.9.0 -->
<exclude name="WordPress.WP.DeprecatedFunctions.sanitize_urlFound" />
</rule>
<rule ref="WordPress-VIP-Go"></rule>
<rule ref="WordPress.Security.ValidatedSanitizedInput">
<properties>
<property name="customUnslashingSanitizingFunctions" type="array">
<element value="wp_verify_nonce" />
</property>
<property name="customSanitizingFunctions" type="array">
<element value="wp_trim_words" />
<!-- Plugin custom sanitizing function -->
<element value="distributor_sanitize_connection" />
</property>
</properties>
</rule>
<!-- Show progress, show the error codes for each message (source). -->
<arg value="ps"/>
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="6.4"/>
<!-- Exclude directory -->
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/lang/*</exclude-pattern>
<exclude-pattern>/asset/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/bin/*</exclude-pattern>
<!--Sniff only php files-->
<arg name="extensions" value="php"/>
</ruleset>