forked from jorgehs91/magento2-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
25 lines (21 loc) · 1.11 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
<?xml version="1.0"?>
<ruleset name="Pagar.me Gateway Module Coding Standards">
<description>Generally-applicable sniffs for Pagar.me Gateway Module</description>
<rule ref="EcgM2"/>
<rule ref="MEQP2">
<!-- Disable Rule: Use of protected class members is discouraged -->
<exclude name="MEQP2.PHP.ProtectedClassMember.FoundProtected" />
<!-- Allow passing Session Objects to Constructors (it is in this way in Magento2 Core) -->
<exclude name="MEQP2.Classes.MutableObjects.MutableObjects" />
<exclude name="MEQP2.Classes.ObjectInstantiation.FoundDirectInstantiation" />
<exclude name="MEQP2.Classes.ConstructorOperations.CustomOperationsFound" />
<exclude name="MEQP2.Classes.ObjectManager.ObjectManagerFound" />
</rule>
<rule ref="MEQP2.Classes.PublicNonInterfaceMethods.PublicMethodFound">
<exclude-pattern>./Test/*</exclude-pattern>
</rule>
<rule ref="PSR2">
<!-- Allow protected properties (Magento 2 also use them in base classes) -->
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore" />
</rule>
</ruleset>