-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathphpcs.ruleset.xml
More file actions
30 lines (25 loc) · 913 Bytes
/
phpcs.ruleset.xml
File metadata and controls
30 lines (25 loc) · 913 Bytes
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="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<rule ref="WordPress-Core" >
<exclude name="WordPress.PHP.YodaConditions" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>
<!-- <rule ref="WordPress-Docs" /> -->
<rule ref="WordPress-Extra" />
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<!-- Customizations -->
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="use_trackserver"/>
<element value="trackserver_publish"/>
<element value="trackserver_admin"/>
</property>
</properties>
</rule>
</ruleset>