forked from stuttter/wp-multi-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
28 lines (23 loc) · 854 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="WP Multi Network PHPCS Rules">
<description>PHPCS ruleset for WP Multi Network</description>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
<!-- Show progress and sniff codes in all reports. -->
<arg value="ps"/>
<!-- Exclude directories we don't need to check. -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Use WPCS except its VIP restrictions. -->
<rule ref="WordPress">
<exclude name="WordPress.VIP.RestrictedFunctions"/>
</rule>
<!-- Set WPCS plugin textdomain. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="string" value="wp-multi-network"/>
</properties>
</rule>
</ruleset>