-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
104 lines (90 loc) · 5.37 KB
/
phpcs.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0"?>
<ruleset name="CFStandard">
<description>CF Coding Standard.</description>
<rule ref="PEAR">
<!-- Ignore Commenting -->
<exclude name="Internal.NoCodeFound"/>
<!-- FileComment -->
<exclude name="PEAR.Commenting.FileComment"/>
<exclude name="PEAR.Commenting.FileComment.MissingCategoryTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingPackageTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingAuthorTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingLicenseTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingLinkTag"/>
<exclude name="PEAR.Commenting.FileComment.MissingVersion"/>
<!-- Commenting.ClassComment -->
<exclude name="PEAR.Commenting.ClassComment.Missing"/>
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingPackageTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingAuthorTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/>
<exclude name="PEAR.Commenting.ClassComment.InvalidAuthors"/>
<!-- Commenting.FunctionComment -->
<exclude name="PEAR.Commenting.FunctionComment.Missing"/>
<!-- Temporary:NeedToResolved-->
<exclude name="PEAR.Commenting.FunctionComment.MissingParamComment"/>
<exclude name="PEAR.Commenting.FunctionComment.MissingParamName"/>
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamName"/>
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="PEAR.Commenting.FunctionComment.ParamNameNoMatch"/>
<!-- START:Temporary:NeedToResolved-->
<exclude name="PEAR.Commenting.FunctionComment.MissingParamTag"/>
<exclude name="PEAR.Commenting.FunctionComment.MissingReturn"/>
<!-- END:Temporary:NeedToResolved-->
<!-- Commenting.DocComment -->
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Generic.Commenting.DocComment.TagValueIndent"/>
<exclude name="Generic.Commenting.DocComment.NonParamGroup"/>
<exclude name="Generic.Commenting.DocComment.ParamNotFirst"/>
<!-- Variable Naming Convetions-->
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
<!-- Including File -->
<exclude name="PEAR.Files.IncludingFile.UseIncludeOnce"/>
<exclude name="PEAR.Files.IncludingFile.UseInclude"/>
<!-- Ignore Braces -->
<exclude name="PEAR.Commenting.FunctionComment.WrongStyle"/>
<exclude name="PEAR.Commenting.InlineComment.WrongStyle"/>
<!-- Ignore Braces -->
<exclude name="PEAR.Classes.ClassDeclaration.OpenBraceNewLine"/>
<exclude name="PEAR.Functions.FunctionDeclaration.BraceOnSameLine"/>
<!-- Ignore complicated conventions-->
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PEAR.WhiteSpace.ScopeIndent.IncorrectExact"/>
<exclude name="Generic.Commenting.DocComment.LongNotCapital"/>
<exclude name="Generic.Commenting.DocComment.TagsNotGrouped"/>
<exclude name="Squiz.Commenting.DocCommentAlignment.SpaceAfterStar"/>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.SpaceBeforeOpenBrace"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.SpacingAfterOpenBrace"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.Alignment"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.StartWithBoolean"/>
<exclude name="Generic.Commenting.DocComment.ContentAfterOpen"/>
<exclude name="Generic.Commenting.DocComment.ContentBeforeClose"/>
<!-- Ignore that already defined in PSR-->
<exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
<exclude name="Generic.ControlStructures.InlineControlStructure.Discouraged"/>
</rule>
<rule ref="PSR2">
<!-- Files.IncludingFile -->
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<!-- Ignore Braces -->
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
</rule>
<exclude-pattern>*/src/Standards/*/Tests/*\.(inc|css|js)$</exclude-pattern>
<exclude-pattern>*/tests/Core/*/*\.(inc|css|js)$</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/vendor/*\.(css|js)</exclude-pattern>
<exclude-pattern>*/*.blade.php</exclude-pattern>
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
</ruleset>