-
Notifications
You must be signed in to change notification settings - Fork 12
/
phpcs.xml
30 lines (26 loc) · 994 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="ByteEver Coding Standards">
<description>ByteEver PHPCS extended.</description>
<!-- Check all PHP files in directory tree by default. -->
<file>.</file>
<exclude-pattern>languages/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>assets/</exclude-pattern>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>bin/</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*\.(css|js|xml)</exclude-pattern>
<arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
<arg name="extensions" value="php"/>
<!-- Rules -->
<rule ref="ByteEver-Default"/>
<!-- Check that the proper text domain(s) is used everywhere. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="wc-serial-numbers"/>
</property>
</properties>
</rule>
</ruleset>