forked from EC-CUBE/ec-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
36 lines (31 loc) · 1.21 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
<?xml version="1.0"?>
<ruleset name="Sample">
<description>A sample coding standard</description>
<!-- Include all sniffs in the PEAR standard -->
<rule ref="Zend">
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/>
<exclude name="Zend.NamingConventions.ValidVariableName.NotCamelCaps"/>
<exclude name="PEAR.Classes.ClassDeclaration.OpenBraceNewLine"/>
</rule>
<!-- Include some specific sniffs -->
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<!-- Change the settings of the Line Length sniff -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
<!-- Change both Line Length messages -->
<rule ref="Generic.Files.LineLength.MaxExceeded">
<message>Line longer than the max of %s; has %s chars</message>
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<message>Line longer than %s chars; has %s chars</message>
</rule>
<!-- Disable internal message for missing code and short open tags -->
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
</ruleset>