-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrules.xml
87 lines (87 loc) · 4.54 KB
/
rules.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="ISO-8859-1"?>
<rules>
<rule key="Symfony2.WhiteSpace.DiscourageFitzinator" priority="MAJOR">
<category name="Maintainability" />
<name>WhiteSpaceDiscourageFitzinator</name>
<configKey>Symfony2.WhiteSpace.DiscourageFitzinator</configKey>
<description>Contains trailing whitespace</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.Missing" priority="MAJOR">
<category name="Maintainability" />
<name>FunctionCommentMissing</name>
<configKey>Symfony2.Commenting.FunctionComment.Missing</configKey>
<description>@return tag missing</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.SpacingBeforeParamType" priority="MAJOR">
<category name="Maintainability" />
<name>FunctionCommentSpacingBeforeParamType</name>
<configKey>Symfony2.Commenting.FunctionComment.SpacingBeforeParamType</configKey>
<description>Expected 1 space before variable type</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.SpacingBeforeTags" priority="MAJOR">
<category name="Maintainability" />
<name>FunctionCommentSpacingBeforeTags</name>
<configKey>Symfony2.Commenting.FunctionComment.SpacingBeforeTags</configKey>
<description>There must be exactly one blank line before the tags in function comment</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.MissingParamTag" priority="MAJOR">
<category name="Maintainability" />
<name>FunctionCommentMissingParamTag</name>
<configKey>Symfony2.Commenting.FunctionComment.MissingParamTag</configKey>
<description>Doc comment for %s missing</description>
</rule>
<rule key="Symfony2.Commenting.ClassComment.Missing" priority="MAJOR">
<category name="Maintainability" />
<name>ClassCommentMissing</name>
<configKey>Symfony2.Commenting.ClassComment.Missing</configKey>
<description>Class comment missing</description>
</rule>
<rule key="Squiz.ControlStructures.ControlSignature" priority="MAJOR">
<category name="Maintainability" />
<name>ControlStructuresControlSignature</name>
<configKey>Squiz.ControlStructures.ControlSignature</configKey>
<description>Expected "if (...) {\n"; found "if(...)\n {\n"</description>
</rule>
<rule key="Symfony2.Formatting.BlankLineBeforeReturn" priority="MAJOR">
<category name="Maintainability" />
<name>FormattingBlankLineBeforeReturn</name>
<configKey>Symfony2.Formatting.BlankLineBeforeReturn</configKey>
<description>Missing blank line before return statement</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.ParameterNamesNotAligned" priority="INFO">
<category name="Maintainability" />
<name>FunctionCommentParameterNamesNotAligned</name>
<configKey>Symfony2.Commenting.FunctionComment.ParameterNamesNotAligned</configKey>
<description>The variable names for parameters %s (%s) and %s (%s) do not align</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.MissingReturn" priority="MAJOR">
<category name="Maintainability" />
<name>FunctionCommentMissingReturn</name>
<configKey>Symfony2.Commenting.FunctionComment.MissingReturn</configKey>
<description>Missing @return tag in function comment</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.ParamNameNoMatch" priority="MAJOR">
<category name="Maintainability" />
<name>FunctionCommentParamNameNoMatch</name>
<configKey>Symfony2.Commenting.FunctionComment.ParamNameNoMatch</configKey>
<description>Param name does not match function comment</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.ParamNameNoCaseMatch" priority="MAJOR">
<category name="Maintainability" />
<name>FunctionCommentParamNameNoCaseMatch</name>
<configKey>Symfony2.Commenting.FunctionComment.ParamNameNoCaseMatch</configKey>
<description>Doc comment does not match case of actual variable name</description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.SpacingBeforeParams" priority="MINOR">
<category name="Maintainability" />
<name>FunctionCommentSpacingBeforeParams</name>
<configKey>Symfony2.Commenting.FunctionComment.SpacingBeforeParams</configKey>
<description></description>
</rule>
<rule key="Symfony2.Commenting.FunctionComment.SpacingAfterParams" priority="MINOR">
<category name="Maintainability" />
<name>FunctionCommentSpacingAfterParams</name>
<configKey>Symfony2.Commenting.FunctionComment.SpacingAfterParams</configKey>
<description></description>
</rule>
</rules>