-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
37 lines (34 loc) · 1.56 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="UT-Magento">
<description>UT's standards for Magento extension development.</description>
<rule ref="Zend.Files.ClosingTag"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="140"/>
<property name="absoluteLineLimit" value="140"/>
</properties>
</rule>
<rule ref="Generic.Files.LineEndings"/>
<rule ref="PEAR.NamingConventions.ValidClassName"/>
<rule ref="Squiz.Functions.GlobalFunction"/>
<rule ref="Zend.NamingConventions.ValidVariableName"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="PEAR.Classes.ClassDeclaration"/>
<rule ref="PEAR.Functions.FunctionDeclaration"/>
<rule ref="Squiz.Scope.MethodScope"/>
<rule ref="Generic.Functions.CallTimePassByReference"/>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="PEAR.ControlStructures.ControlSignature"/>
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="Generic.Commenting.Todo.CommentFound">
<message>Please review this TODO comment: %s</message>
<severity>3</severity>
</rule>
</ruleset>