forked from MahoCommerce/maho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
32 lines (32 loc) · 1.44 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
<?xml version="1.0"?>
<ruleset name="OpenMage" namespace="OpenMage\CS\Standard">
<config name="testVersion" value="8.2-"/>
<file>maho</file>
<file>app/bootstrap.php</file>
<file>app/Mage.php</file>
<file>app/code/core/Mage/</file>
<file>lib/Mage/</file>
<file>lib/MahoCLI/</file>
<file>lib/Varien/</file>
<file>public/api.php</file>
<file>public/index.php</file>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>public/api.php</exclude-pattern>
<exclude-pattern>public/index.php</exclude-pattern>
<exclude-pattern>app/Mage.php</exclude-pattern>
</rule>
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="PSR2.Classes.ClassDeclaration.ExtendsLine"/>
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
</rule>
<rule ref="PSR12">
<!-- conflicts with PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace -->
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
<!-- requires emtpy line between php opening tag and first comment block -->
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
</rule>
</ruleset>