-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml
44 lines (33 loc) · 1.16 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
44
<?xml version="1.0"?>
<ruleset name="PSR-2+">
<description>PSR-2 Coding standards + some checkings</description>
<rule ref="PSR1"/>
<rule ref="PSR2"/>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="complexity" value="10"/>
<property name="absoluteComplexity" value="100"/>
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="nestingLevel" value="5"/>
<property name="absoluteNestingLevel" value="50"/>
</properties>
</rule>
<!-- PEAR -->
<rule ref="PEAR.Classes.ClassDeclaration"/>
<rule ref="PEAR.Files.IncludingFile"/>
<!-- ZEND -->
<rule ref="Zend.Debug.CodeAnalyzer"/>
<rule ref="PEAR.Formatting.MultiLineAssignment"/>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Scope.MethodScope">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>