forked from djoos/Symfony-coding-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
36 lines (29 loc) · 1.24 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="Symfony2">
<description>The Symfony2 coding standard.</description>
<!-- There should not be any code in the bundle Resources directory. -->
<exclude-pattern>*/Resources/*</exclude-pattern>
<!-- Enforce the PSR2 standard -->
<rule ref="PSR2">
<exclude name="Squiz.ControlStructures.ControlSignature"/>
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen"/>
</rule>
<!-- Enforce our own version of the PSR2 control signature checker -->
<rule ref="Symfony2.ControlStructures.ControlSignature">
<severity>0</severity>
</rule>
<!-- Symfony rules -->
<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>
<!-- Disable missing class comment rule -->
<rule ref="Symfony2.Commenting.ClassComment.Missing">
<severity>0</severity>
</rule>
</ruleset>