-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathphpcs.xml.dist
33 lines (27 loc) · 990 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
29
30
31
32
33
<?xml version="1.0"?>
<ruleset name="Gardener">
<description>WordPress Coding Standards for Gardener</description>
<!-- Show sniff codes in all reports, and progress while running -->
<arg value="sp"/>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<!-- Run different reports -->
<arg name="report" value="full"/>
<arg name="report" value="summary"/>
<arg name="report" value="source"/>
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<config name="testVersion" value="5.3-"/>
<rule ref="PSR2">
<exclude name="PSR1.Classes.ClassDeclaration"/>
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="PSR1.Files.SideEffects" />
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="250" />
<property name="absoluteLineLimit" value="300" />
</properties>
</rule>
</ruleset>