-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
41 lines (32 loc) · 1.23 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<ruleset name="WordPress-Components">
<description>A custom set of rules to check coding standards for Components.</description>
<!--
Default settings for command line usage
-->
<!-- Exclude folders and files from being checked. -->
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/wordpress/*</exclude-pattern>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
<!-- Use colors in output. -->
<arg name="colors"/>
<!-- Show sniff names and progress. -->
<arg value="sp"/>
<!--
WordPress-Extra
Best practices beyond core WordPress Coding Standards.
The WordPress-Core standard doesn’t have to be included here,
because WordPress-Extra already includes it.
-->
<rule ref="WordPress-Theme"/>
<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="requiredSpacesAfterOpen" value="1" />
<property name="requiredSpacesBeforeClose" value="1"/>
</properties>
</rule>
</ruleset>