forked from l3l0/phpcs-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
executable file
·50 lines (43 loc) · 1.74 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
<?xml version="1.0"?>
<ruleset name="symfony">
<description>The Symfony 1.x coding standard.</description>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="2"/>
</properties>
</rule>
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Symfony2.WhiteSpace.DiscourageFitzinator"/>
<rule ref="Squiz.Scope.MemberVarScope"/>
<rule ref="Symfony.Classes.ValidClassName">
<properties>
<property name="classNamePattern" value="/^gy[A-Z]{1}[a-zA-Z0-9]+$/"/>
</properties>
</rule>
<rule ref="Generic.Formatting.SpaceAfterCast"/>
<rule ref="Generic.Functions.CallTimePassByReference"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Symfony.Classes.OnePerFile"/>
<rule ref="Squiz.Objects.ObjectMemberComma"/>
<rule ref="Squiz.PHP.Eval"/>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<rule ref="Symfony.Functions.FunctionDeclarationArgumentSpacing"/>
<rule ref="Zend.Files.ClosingTag"/>
<rule ref="Symfony.NamingConventions.ValidVariableName"/>
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
<rule ref="Squiz.Scope.MethodScope"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="80"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
</ruleset>