-
-
Notifications
You must be signed in to change notification settings - Fork 436
/
.phpcs.dist.xml
62 lines (61 loc) · 3.6 KB
/
.phpcs.dist.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<ruleset name="OpenMage Default" namespace="OpenMage\CS\Standard">
<file>api.php</file>
<file>cron.php</file>
<file>get.php</file>
<file>index.php</file>
<file>install.php</file>
<file>app/Mage.php</file>
<file>app/code/core/Mage/</file>
<file>errors/</file>
<file>lib/Mage/</file>
<file>lib/Magento/</file>
<file>lib/Varien/</file>
<file>shell/</file>
<file>tests/unit/</file>
<!-- file contains include/include_once/... -->
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<!-- controllers -->
<exclude-pattern>*/get.php*</exclude-pattern>
<exclude-pattern>*/index.php*</exclude-pattern>
<exclude-pattern>*/app/Mage.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Adminhtml/controllers/Sales/Order/EditController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Adminhtml/controllers/System/Convert/GuiController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Authorizenet/controllers/Adminhtml/Authorizenet/Directpost/PaymentController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Bundle/controllers/Adminhtml/Bundle/Product/EditController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Bundle/controllers/Product/EditController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Bundle/controllers/SelectionController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Centinel/Model/Api/Client.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Downloadable/controllers/Adminhtml/Downloadable/Product/EditController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Downloadable/controllers/Product/EditController.php*</exclude-pattern>
<exclude-pattern>*/core/Mage/Downloadable/controllers/FileController.php*</exclude-pattern>
<exclude-pattern>*/shell/indexer.php*</exclude-pattern>
<exclude-pattern>*/shell/log.php*</exclude-pattern>
<exclude-pattern>*/shell/translations.php*</exclude-pattern>
<exclude-pattern>*/shell/update-copyright.php*</exclude-pattern>
<!-- others (@todo check) -->
<exclude-pattern>*/lib/Varien/Db/Tree/Exception.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/Db/Tree/Node.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/Db/Exception.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/Db/Tree.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/Directory/Collection.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/Directory/Factory.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/File/CsvMulty.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/File/Object.php*</exclude-pattern>
<exclude-pattern>*/lib/Varien/Io/Sftp.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>