-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
35 lines (29 loc) · 1.1 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
35 lines (29 loc) · 1.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
33
34
35
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Disable Embeds Plugin">
<description>A custom set of code standard rules for Disable Embeds.</description>
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<!-- Make sure we prefix everything in the global namespace. -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="disable_embeds" />
</property>
</properties>
</rule>
<!-- The plugin supports WordPress 4.4 and newer. -->
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_wp_version" value="4.4" />
</properties>
</rule>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
<!-- Test for PHP 5.2+ compatibility, matching composer.json. -->
<config name="testVersion" value="5.2-"/>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
</ruleset>