-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
31 lines (25 loc) · 1.06 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Sample Extension">
<description>WPCS custom rules for Sample Extension</description>
<!-- EXCLUDE - Dependecies directories. -->
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<!-- EXCLUDE - Javascript & CSS files. -->
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.css</exclude-pattern>
<!-- STANDARD - Rules used on Sample Extension. -->
<rule ref="WordPress"/>
<rule ref="WordPress-Docs"/>
<rule ref="Generic.Commenting.Todo"/>
<!--
EXCLUDE - Non lowercase and non class prefix file name.
Those files are intended to use non lowercase and non class prefix file name to
allow main extension class to detect the correct module's files.
-->
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>includes/modules/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>includes/modules/*.php</exclude-pattern>
</rule>
</ruleset>