forked from liquidweb/woocommerce-custom-orders-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
36 lines (29 loc) · 1.16 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<!-- The plugin should be compatible with PHP 5.2 and newer. -->
<config name="testVersion" value="5.2-"/>
<rule ref="WooCommerce-Core">
<!-- Let the plugin files have @author tags. -->
<exclude name="Core.Commenting.CommentTags.AuthorTag" />
</rule>
<rule ref="WordPress.WP.I18n">
<!-- Set the expected text domain. -->
<properties>
<property name="text_domain" type="array" value="woocommerce-custom-orders-table" />
</properties>
</rule>
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.PHP.NewKeywords.t_namespaceFound" />
<exclude-pattern>includes/class-woocommerce-custom-orders-table-cli.php</exclude-pattern>
</rule>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>./includes</file>
<file>./tests</file>
<file>woocommerce-custom-orders-table.php</file>
<!-- Show progress and sniff codes in all reports -->
<arg value="ps"/>
<!-- Exclude the tests/ directory. -->
<exclude-pattern>*/tests/*</exclude-pattern>
</ruleset>