-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs_custom.xml
44 lines (40 loc) · 1.44 KB
/
phpcs_custom.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="berbeflo Custom Standard" namespace="berbeflo\CS\Standard">
<description>My custom standard to replace phpmd</description>
<config name="zend_ca_path" value="/path/to/ZendCodeAnalyzer"/>
<arg name="report" value="xml"/>
<arg name="colors"/>
<arg value="sp"/>
<rule ref="PSR2"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="100" />
<property name="absoluteLineLimit" value="135" />
</properties>
</rule>
<rule ref="Generic.Formatting.SpaceAfterCast">
<properties>
<property name="spacing" value="1" />
</properties>
</rule>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property name="complexity" value="10" />
<property name="absoluteComplexity" value="20" />
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="nestingLevel" value="3" />
<property name="absoluteNestingLevel" value="5" />
</properties>
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" extend="true">
<element key="echo" value="null"/>
<element key="var_dump" value="null"/>
</property>
</properties>
</rule>
</ruleset>