37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
#################################################################################
|
|
# This file is a copy of phpstan.neon with additional rules for PS 1.6
|
|
# Its objective is to avoid false-positive results regarding non-existing classes
|
|
#################################################################################
|
|
parameters:
|
|
bootstrapFiles:
|
|
- ./../../tests/phpstan/bootstrap.php
|
|
reportUnmatchedIgnoredErrors: false
|
|
paths:
|
|
- ./../../classes
|
|
excludes_analyse:
|
|
- ./../../classes/Tools14.php
|
|
- ./../../classes/pclzip.lib.php
|
|
- ./../../functions.php
|
|
- ./../../classes/UpgradeTools/CoreUpgrader/CoreUpgrader17.php
|
|
- ./../../classes/UpgradeTools/SymfonyAdapter.php
|
|
ignoreErrors:
|
|
# module specific
|
|
- '#Function deactivate_custom_modules not found.#'
|
|
- '#Constant MCRYPT_[A-Z0-9_]+ not found.#'
|
|
- "#Call to function method_exists#"
|
|
- '#Access to an undefined property Module::\$installed\.#'
|
|
# CLDR related check
|
|
- '#[cC]lass PrestaShop\\PrestaShop\\Core\\Cldr\\Update#'
|
|
# AppKernel wasn't properly listed in autoloader
|
|
- '#AppKernel#'
|
|
- '#Access to offset 0 on an unknown class mysqli_result.#'
|
|
- '#Iterating over an object of an unknown class mysqli_result.#'
|
|
|
|
# Below are messages ignored on PS 1.6
|
|
- '#[cC]lass PrestaShop\\PrestaShop\\Core\\Addon\\Theme\\ThemeManagerBuilder#'
|
|
- '#PrestaShop\\Module\\AutoUpgrade\\UpgradeTools\\ModuleAdapter#'
|
|
- '#PrestaShop\\PrestaShop\\Adapter\\Module\\ModuleDataUpdater#'
|
|
- '#PrestaShopBundle\\Install\\Upgrade#'
|
|
- '#Call to an undefined static method ConfigurationTest::test_curl\(\).#'
|
|
|
|
level: 5 |