forked from yireo-magento1/Yireo_GoogleTagManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
37 lines (32 loc) · 1.74 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
<?xml version="1.0"?>
<ruleset name="MageScan-Mage1">
<description>Magento extension ruleset based on PSR-2 but modified for Magento 1</description>
<rule ref="PEAR">
<exclude name="PEAR.NamingConventions.ValidVariableName.PublicUnderscore" />
<exclude name="PEAR.Commenting.FunctionComment.MissingParamComment" />
<exclude name="Generic.Commenting.DocComment.TagValueIndent" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="Generic.Commenting.DocComment.NonParamGroup" />
<exclude name="PEAR.NamingConventions.ValidFunctionName.PublicUnderscore" />
</rule>
<rule ref="PSR2">
<!-- Magento 1 class names don't comply so ignore these rules -->
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<!-- Magento standards use underscore for private methods so lets ignore this -->
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Classes.ClassDeclaration.ExtendsLine"/>
<!-- Magento requires including files in some cases so we either exclude this test or add DocBlocks -->
<exclude name="PSR1.Files.SideEffects"/>
<!-- Handle line length in a different rule -->
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value=""/>
</properties>
</rule>
</ruleset>