-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml
30 lines (30 loc) · 1.23 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
<?xml version="1.0"?>
<ruleset name="Magento PSR2">
<description>Magento Coding Standards using PSR2.</description>
<!-- Exclude paths -->
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- scripts folder is utilized only in development, no need for cs -->
<exclude-pattern>./scripts/*</exclude-pattern>
<!-- Rules -->
<rule ref="./lib/Ebanx/vendor/magento-ecg/coding-standard/Ecg" />
<rule ref="PSR2">
<exclude name="PSR2.Namespaces" />
</rule>
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found" />
<rule ref="PEAR.Commenting.FunctionComment">
<exclude name="PEAR.Commenting.FunctionComment.MissingParamComment" />
</rule>
<rule ref="Generic.Commenting">
<exclude-pattern>*.phtml</exclude-pattern>
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="Generic.Commenting.DocComment.SpacingBeforeTags" />
</rule>
<!-- Excludes -->
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude name="PSR1.Classes.ClassDeclaration" />
</rule>
<rule ref="Squiz.Classes.ValidClassName">
<exclude name="Squiz.Classes.ValidClassName" />
</rule>
</ruleset>