-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
43 lines (32 loc) · 1.35 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
42
43
<?xml version="1.0"?>
<ruleset name="Triun's PHP Standard">
<description>Triun's PHP Standard (PSR2)</description>
<rule ref="PSR2"/>
<file>./</file>
<exclude-pattern>/build</exclude-pattern>
<exclude-pattern>/vendor</exclude-pattern>
<exclude-pattern>/.phpstorm.meta.php</exclude-pattern>
<exclude-pattern>/_ide_helper.php</exclude-pattern>
<exclude-pattern>/_extra_ide_helper.php</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"/>
<!-- Config files lines can be longer than 120 chars-->
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>/config/*</exclude-pattern>
</rule>
<!-- 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>/tests/*</exclude-pattern>
</rule>
<!-- is not in camel caps format -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<!-- Each class must be in a file by itself -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
</ruleset>