forked from xalopp/symfony-coding-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
51 lines (39 loc) · 1.55 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 PSR-2 coding standard.</description>
<!-- There should not be any code in the bundle Resources directory. -->
<exclude-pattern>*/Resources/*</exclude-pattern>
<!-- 2. General -->
<!-- Include the whole PSR-2 standard -->
<rule ref="PSR2">
<exclude name="PEAR.Functions.FunctionCallSignature"/>
</rule>
<rule ref="Symfony.Commenting.FunctionComment.MissingParamComment">
<severity>0</severity>
</rule>
<rule ref="Symfony.Commenting.FunctionComment.SpacingBeforeTags">
<severity>0</severity>
</rule>
<!-- Allow fluent interface style with the semi-colon on it's own line -->
<rule ref="Symfony.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule>
<!-- use squiz sniff for space around operators -->
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<!-- Variable must be camel case -->
<rule ref="Zend.NamingConventions.ValidVariableName"/>
<!-- Variable may contain numbers -->
<rule ref="Zend.NamingConventions.ValidVariableName.ContainsNumbers">
<severity>0</severity>
</rule>
<!-- Private properties must not be prefixed with underscore -->
<rule ref="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<severity>0</severity>
</rule>
</ruleset>