forked from OpenMage/magento-lts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.dist.neon
79 lines (67 loc) · 2.94 KB
/
phpstan.dist.neon
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
includes:
- vendor/macopedia/phpstan-magento1/extension.neon
- phpstan.dist.baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
magentoRootPath: %currentWorkingDirectory%
paths:
- api.php
- cron.php
- get.php
- index.php
- install.php
- app/Mage.php
- app/code/core/Mage
- lib/Mage
- lib/Magento
- lib/Varien
- shell
excludePaths:
# removed and fixed modules (OM-2811, OM-2813)
- app/code/core/Mage/Backup/*
- app/code/core/Mage/PageCache/*
#incompatible interfaces
- app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
- app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
- app/code/core/Mage/Api/Model/Acl/Assert/Ip.php
- app/code/core/Mage/Api/Model/Acl/Assert/Time.php
- app/code/core/Mage/Adminhtml/Block/Widget/Grid/Block.php
- app/code/core/Mage/Core/Model/Mysql4/Design/Theme/Collection.php
- lib/Varien/Directory/Collection.php
- lib/Varien/Directory/Factory.php
- lib/Varien/File/Object.php
# deprecated _getHelper()
- app/code/core/Mage/Adminhtml/Controller/Rss/Abstract.php
- app/code/core/Mage/Adminhtml/controllers/Rss/OrderController.php
- app/code/core/Mage/Adminhtml/controllers/Rss/CatalogController.php
# contains 1 abstract method and must therefore be declared abstract or implement the remaining methods
- app/code/core/Mage/Dataflow/Model/Session/Adapter/Http.php
- app/code/core/Mage/Dataflow/Model/Convert/Iterator/Http.php
- app/code/core/Mage/Dataflow/Model/Convert/Iterator/File/Csv.php
- lib/Varien/Convert/Validator/Column.php
# Cannot declare class Varien_Date, because the name is already in use
- app/code/core/Mage/Catalog/Model/Product/Option/Type/Date.php
# Cannot declare class XMLParser, because the name is already in use
- app/code/core/Mage/Centinel/Model/Api.php
- app/code/core/Mage/Centinel/Model/Api/Client.php
# Class phpseclib\Net\SSH2 not found.
- app/code/core/Mage/Paypal/Model/Report/Settlement.php
- lib/Varien/Io/Sftp.php
# Class backup/db was not found while trying to analyse it
- app/code/core/Mage/Adminhtml/controllers/System/BackupController.php
# Dataflow/Model/Convert/Iterator.php
- app/code/core/Mage/Dataflow/Model/Convert/Iterator.php
# Too much noise from "Variable $this might not be defined"
- app/code/core/*/*/data/*
- app/code/core/*/*/sql/*
# requires Mycrypt
- lib/Magento/Crypt.php
- lib/Varien/Crypt/Mcrypt.php
# Instantiated class not found
- lib/Varien/Image/Adapter.php
level: 4
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
treatPhpDocTypesAsCertain: false
# universalObjectCratesClasses:
# - Varien_Object