This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruleset.xml
58 lines (49 loc) · 2.34 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
<?xml version="1.0"?>
<ruleset name="SparkRebel">
<description>SparkRebel Coding Standard (as if!)</description>
<exclude-pattern>*/Resources/*</exclude-pattern>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.Functions.CallTimePassByReference"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.PHP.LowerCaseConstant"/>
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<rule ref="Squiz.ControlStructures.ControlSignature"/>
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
<rule ref="Squiz.ControlStructures.ForLoopDeclaration"/>
<rule ref="Squiz.ControlStructures.LowercaseDeclaration"/>
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
<rule ref="Squiz.Scope.MemberVarScope"/>
<rule ref="PEAR.Commenting.InlineComment"/>
<!-- Import Zend coding standard (which in turn imports PEAR) -->
<rule ref="Zend">
<exclude name="Zend.Debug.CodeAnalyzer"/>
<exclude name="PEAR.ControlStructures.ControlSignature"/>
<exclude name="PEAR.Commenting.FunctionComment.SpacingBeforeTags"/>
<exclude name="Generic.Files.LineLength"/>
</rule>
<!-- Don't enforce Zend's private member underscores -->
<rule ref="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<severity>0</severity>
</rule>
<!-- Ignore variables that contains numbers -->
<rule ref="Zend.NamingConventions.ValidVariableName.ContainsNumbers">
<severity>0</severity>
</rule>
<!-- In practice, Symfony2 spaces multiline function calls differently than Zend -->
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
<severity>0</severity>
</rule>
<rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine">
<severity>0</severity>
</rule>
<rule ref="Symfony2.Commenting.FunctionComment.MissingParamComment">
<severity>0</severity>
</rule>
<rule ref="Symfony2.Commenting.FunctionComment.SpacingBeforeTags">
<severity>0</severity>
</rule>
<rule ref="Symfony2.Commenting.ClassComment.SpacingBeforeTags">
<message>There should always be a description, followed by a blank line, before the tags of a class comment.</message>
</rule>
</ruleset>