-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruleset.xml
executable file
·55 lines (43 loc) · 1.35 KB
/
ruleset.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
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<ruleset name="CakePHPPear">
<description>The PEAR coding standard with some adjustments to work with
CakePHP.</description>
<rule ref="PEAR"/>
<rule ref="PEAR">
<exclude name="PEAR.NamingConventions.ValidFunctionName"/>
</rule>
<!-- Lines can be 85 chars long, but never show errors -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="80"/>
<property name="absoluteLineLimit" value="100"/>
</properties>
</rule>
<!-- Non Empty if's -->
<rule ref="Generic.CodeAnalysis.EmptyStatement">
<severity>5</severity>
</rule>
<!-- Non unused parameter -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<severity>5</severity>
</rule>
<!-- Alignment -->
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<severity>5</severity>
</rule>
<!-- Bad Spaces -->
<rule ref="Generic.Formatting.NoSpaceAfterCast">
<severity>5</severity>
</rule>
<rule ref="Generic.Formatting.SpaceAfterCast">
<severity>5</severity>
</rule>
<!-- Non Deprecated -->
<rule ref="Generic.PHP.DeprecatedFunctions">
<severity>5</severity>
</rule>
<!-- Well ident -->
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent">
<severity>5</severity>
</rule>
</ruleset>