forked from bartosz-maciaszek/chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
29 lines (27 loc) · 1.69 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
<?xml version="1.0"?>
<ruleset name="Coding Standard">
<description>The coding standard used for PHP code.</description>
<!-- Obviously -->
<rule ref="PSR2"/>
<!-- But also add some requirements from PEAR, especially for doc comments -->
<rule ref="PEAR">
<exclude name="Generic.Commenting.DocComment.ContentAfterOpen"/>
<exclude name="Generic.Commenting.DocComment.ContentBeforeClose"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Generic.Files.LineLength.TooLong"/> <!-- This is taken care of in PSR2 -->
<exclude name="PEAR.Commenting.FileComment.Missing"/> <!-- Just require class doc comment -->
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingPackageTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/>
<exclude name="PEAR.Commenting.FunctionComment.MissingReturn"/>
<exclude name="PEAR.Commenting.FunctionComment.MissingParamComment"/>
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamName"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"/>
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
<exclude name="PEAR.WhiteSpace.ScopeIndent.IncorrectExact"/>
</rule>
</ruleset>