-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
50 lines (41 loc) · 1.76 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
45
46
47
48
49
50
<?xml version="1.0"?>
<ruleset name="Project Rules">
<rule ref="10up-Default">
<exclude name="WordPress.WP.DeprecatedFunctions.sanitize_urlFound" />
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
<exclude name="WordPress.DB.PreparedSQL.NotPrepared" />
<exclude name="WordPress.DB.PreparedSQL.InterpolatedNotPrepared" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_key" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_value" />
<exclude name="PEAR.NamingConventions.ValidClassName.StartWithCapital" />
</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="5.3"/>
<!-- Exclude directory -->
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/build/*</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>