-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
phpcs.xml
49 lines (40 loc) · 1.68 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
<?xml version="1.0"?>
<ruleset name="The SEO Framework">
<description>The coding standard used for The SEO Framework plugin for WordPress.</description>
<!-- Get it here: https://github.com/theseoframework/wpcs-tsf -->
<rule ref="TSF"/>
<!-- Defined at wpcs-tsf. We cannot override that here... -->
<!-- <config name="minimum_supported_wp_version" value="5.5"/> -->
<!-- <config name="testVersion" value="7.2-"/> -->
<rule ref="TSF.Performance.Opcodes">
<properties>
<!-- Can we drop these exceptions at 3.0, perhaps use keywords may then be supported? -->
<property name="userNoopChecks" type="array" value="_can_load,has_run,_bootstrap_timer,is_headless,memo,umemo,fmemo,normalize_generation_args,get_query_type_from_args,coalesce_strlen"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="autodescription,default"/>
</properties>
</rule>
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
<properties>
<property name="validUndefinedVariableRegexp" type="string" value="/secret|view_args/"/>
</properties>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property name="customEscapingFunctions" type="array">
<element value="esc_xml"/>
</property>
</properties>
</rule>
<!-- Exclude minified scripts. -->
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.min.css</exclude-pattern>
<!-- Exclude index.php files. They are inert in (our) plugins unless directly included/called. -->
<exclude-pattern>index.php</exclude-pattern>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
</ruleset>