-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathruleset.xml
62 lines (50 loc) · 2.05 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
56
57
58
59
60
61
62
<?xml version="1.0"?>
<ruleset name="A24Studio">
<!--
The name attribute of the ruleset tag is displayed
when running PHP_CodeSniffer with the -v command line
argument.
-->
<description>A24Studio Coding standards</description>
<!--
Start by including PSR standards
-->
<rule ref="PSR">
<exclude name="Generic.Files.LineLength"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
</rule>
<!--
Add generic and pear standards we wish to reuse
-->
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.LowerCaseConstant"/>
<rule ref="PEAR.Classes.ClassDeclaration"/>
<rule ref="PEAR.Functions.ValidDefaultValue"/>
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="Squiz.Functions.GlobalFunction"/>
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<!-- Add custom sniffs -->
<rule ref="A24StudioCS.Commenting.FunctionComment"/>
<rule ref="A24StudioCS.Commenting.FileComment"/>
<rule ref="A24StudioCS.Commenting.InlineComment"/>
<rule ref="A24StudioCS.Commenting.VariableComment"/>
<rule ref="A24StudioCS.NamingConventions.ValidVariableName"/>
<rule ref="A24StudioCS.WhiteSpace.FunctionSpacing"/>
<rule ref="A24StudioCS.WhiteSpace.ScopeClosingBrace"/>
<rule ref="A24StudioCS.WhiteSpace.ScopeIndent"/>
<rule ref="A24StudioCS.Commenting.FunctionCommentThrowTag"/>
<rule ref="A24StudioCS.Classes.ClassImport"/>
<rule ref="A24StudioCS.Commenting.NamespaceComment"/>
<rule ref="A24StudioCS.Functions.FunctionCallSignature"/>
<rule ref="A24StudioCS.Files.LineLength">
<properties>
<property name="lineLimit" value="80"/>
<property name="absoluteLineLimit" value="120"/>
<property name="ignoreTagLineLength" value="@expectedExceptionCode|@expectedException|@covers"/>
<property name="ignoreStartsWithLineLength" value="use"/> <!-- Also an array. Can add more items -->
</properties>
</rule>
</ruleset>