forked from OpenMage/magento-lts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpstan.dist.neon
161 lines (152 loc) · 10.2 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
includes:
- vendor/macopedia/phpstan-magento1/extension.neon
- .phpstan.dist.baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
phpVersion:
min: 70433
max: 80499
magentoRootPath: %currentWorkingDirectory%
fileExtensions:
- php
- phtml
paths:
- api.php
- cron.php
- get.php
- index.php
- install.php
- app/Mage.php
- app/code/core/Mage
- app/design/
- errors
- lib/Mage
- lib/Magento
- lib/Varien
- shell
- tests/unit
excludePaths:
#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/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
# 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
ignoreErrors:
-
# @todo remove unused classes/template
# @todo add classes to widgets
message: '#^Variable \$this might not be defined\.$#'
paths:
- app/design/adminhtml/default/default/template/api/usernroles.phtml
- app/design/adminhtml/default/default/template/dashboard/searches.phtml
- app/design/adminhtml/default/default/template/dashboard/store/switcher.phtml
- app/design/adminhtml/default/default/template/empty.phtml
- app/design/adminhtml/default/default/template/overlay_popup.phtml
- app/design/adminhtml/default/default/template/popup.phtml
- app/design/adminhtml/default/default/template/promo/form.phtml
- app/design/adminhtml/default/default/template/rating/stars/detailed.phtml
- app/design/adminhtml/default/default/template/review/add.phtml
- app/design/adminhtml/default/default/template/sales/billing/agreement/form.phtml
- app/design/adminhtml/default/default/template/sales/items/renderer/default.phtml
- app/design/adminhtml/default/default/template/sales/order/shipment/create/items/renderer/configurable.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/discount.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/due.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/footer.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/grand.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/item.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/main.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/paid.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/refunded.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/shipping.phtml
- app/design/adminhtml/default/default/template/sales/order/totals/subtotal.phtml
- app/design/adminhtml/default/default/template/sales/order/view/tracking.phtml
- app/design/adminhtml/default/default/template/system/info.phtml
- app/design/adminhtml/default/default/template/tax/class/page/edit.phtml
- app/design/adminhtml/default/default/template/tax/toolbar/class/save.phtml
- app/design/adminhtml/default/default/template/tax/toolbar/rule/save.phtml
- app/design/frontend/base/default/template/bundle/catalog/product/list/partof.phtml
- app/design/frontend/base/default/template/bundle/catalog/product/view/options/notice.phtml
- app/design/frontend/base/default/template/catalog/category/page.phtml
- app/design/frontend/base/default/template/catalog/category/widget/link/link_block.phtml
- app/design/frontend/base/default/template/catalog/category/widget/link/link_inline.phtml
- app/design/frontend/base/default/template/catalog/product/view/price.phtml
- app/design/frontend/base/default/template/catalog/product/widget/link/link_block.phtml
- app/design/frontend/base/default/template/catalog/product/widget/link/link_inline.phtml
- app/design/frontend/base/default/template/catalog/product/widget/new/column/new_default_list.phtml
- app/design/frontend/base/default/template/catalog/product/widget/new/column/new_images_list.phtml
- app/design/frontend/base/default/template/catalog/product/widget/new/column/new_names_list.phtml
- app/design/frontend/base/default/template/catalog/product/widget/new/content/new_grid.phtml
- app/design/frontend/base/default/template/catalog/product/widget/new/content/new_list.phtml
- app/design/frontend/base/default/template/checkout/cart/render/default.phtml
- app/design/frontend/base/default/template/checkout/cart/render/simple.phtml
- app/design/frontend/base/default/template/cms/widget/link/link_block.phtml
- app/design/frontend/base/default/template/cms/widget/link/link_inline.phtml
- app/design/frontend/base/default/template/cms/widget/static_block/default.phtml
- app/design/frontend/base/default/template/core/messages.phtml
- app/design/frontend/base/default/template/customer/address.phtml
- app/design/frontend/base/default/template/customer/balance.phtml
- app/design/frontend/base/default/template/customer/form/address.phtml
- app/design/frontend/base/default/template/customer/form/changepassword.phtml
- app/design/frontend/base/default/template/customer/orders.phtml
- app/design/frontend/base/default/template/customer/wishlist.phtml
- app/design/frontend/base/default/template/directory/currency/switch.phtml
- app/design/frontend/base/default/template/page/redirect.phtml
- app/design/frontend/base/default/template/paypal/hss/review/button.phtml
- app/design/frontend/base/default/template/reports/widget/compared/column/compared_default_list.phtml
- app/design/frontend/base/default/template/reports/widget/compared/column/compared_images_list.phtml
- app/design/frontend/base/default/template/reports/widget/compared/column/compared_names_list.phtml
- app/design/frontend/base/default/template/reports/widget/compared/content/compared_grid.phtml
- app/design/frontend/base/default/template/reports/widget/compared/content/compared_list.phtml
- app/design/frontend/rwd/default/template/catalog/product/widget/new/column/new_default_list.phtml
- app/design/frontend/rwd/default/template/catalog/product/widget/new/column/new_images_list.phtml
- app/design/frontend/rwd/default/template/catalog/product/widget/new/column/new_names_list.phtml
- app/design/frontend/rwd/default/template/catalog/product/widget/new/content/new_list.phtml
- app/design/frontend/rwd/default/template/checkout/cart/render/default.phtml
- app/design/frontend/rwd/default/template/checkout/cart/render/simple.phtml
- app/design/frontend/rwd/default/template/customer/form/address.phtml
- app/design/frontend/rwd/default/template/customer/form/changepassword.phtml
- app/design/frontend/rwd/default/template/paypal/express/review/address.phtml
- app/design/frontend/rwd/default/template/reports/widget/compared/column/compared_default_list.phtml
- app/design/frontend/rwd/default/template/reports/widget/compared/column/compared_images_list.phtml
- app/design/frontend/rwd/default/template/reports/widget/compared/column/compared_names_list.phtml
- app/design/frontend/rwd/default/template/reports/widget/compared/content/compared_grid.phtml
- app/design/frontend/rwd/default/template/reports/widget/compared/content/compared_list.phtml
- app/design/install/default/default/template/page.phtml
tmpDir: .phpstan.cache
level: 5
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
treatPhpDocTypesAsCertain: false
# universalObjectCratesClasses:
# - Varien_Object