-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
35 lines (25 loc) · 1.01 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
<?xml version="1.0"?>
<ruleset name="Package's PHP Standard">
<description>Package's PHP Standard (PSR2)</description>
<rule ref="PSR2"/>
<file>./</file>
<exclude-pattern>/build</exclude-pattern>
<exclude-pattern>/vendor</exclude-pattern>
<!--<arg name="report" value="summary"/>-->
<arg name="colors"/>
<arg value="sp"/>
<arg name="extensions" value="php,inc,lib"/>
<ini name="memory_limit" value="128M"/>
<!-- Each class must be in a namespace of at least one level (a top-level vendor name)-->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>/test/*</exclude-pattern>
</rule>
<!-- is not in camel caps format -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>/test/*</exclude-pattern>
</rule>
<!-- Each class must be in a file by itself -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>/test/*</exclude-pattern>
</rule>
</ruleset>