-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmyemsl_ruleset.xml
25 lines (24 loc) · 1.37 KB
/
myemsl_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
<?xml version="1.0"?>
<ruleset name="MyEMSL_Web_Standard">
<description>My custom coding standard.</description>
<rule ref="PEAR">
<exclude name="Generic.PHP.LowerCaseConstant"/>
<exclude name="PEAR.Functions.FunctionDeclaration.NewlineBeforeOpenBrace"/>
<exclude name="PEAR.ControlStructures.ControlSignature"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
<exclude name="PEAR.Commenting.FileComment.MissingCategoryTag"/>
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName.NotCamelCaps"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName.FunctionNoCapital"/>
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/>
</rule>
<!-- Constants should always be fully uppercase -->
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<!-- TRUE, FALSE, and NULL keywords should always be fully uppercase -->
<rule ref="Generic.PHP.UpperCaseConstant"/>
<!-- Use Allman style indenting. With the exception of Class declarations,
braces are always placed on a line by themselves, and indented at the same level as the control statement that "owns" them. -->
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
</ruleset>