dolibarr/phpstan.neon

121 lines
3.3 KiB
Text
Raw Normal View History

2019-05-15 11:20:11 +00:00
parameters:
2023-08-04 00:38:10 +00:00
customRulesetUsed: true
2023-12-15 09:28:16 +00:00
level: 2
2019-05-15 11:20:11 +00:00
fileExtensions:
- php
2023-08-04 01:42:46 +00:00
paths:
- htdocs
2023-08-05 11:46:58 +00:00
- scripts
2023-08-04 00:57:10 +00:00
excludePaths:
2023-08-04 01:42:46 +00:00
analyseAndScan:
2023-12-15 10:18:04 +00:00
- htdocs/custom/*
2023-08-04 01:42:46 +00:00
- htdocs/dev/*
- htdocs/doc/*
- htdocs/documents/*
- htdocs/install/doctemplates/*
- htdocs/langs/*
2023-08-24 12:31:10 +00:00
- htdocs/modulebuilder/template/test/*
2023-08-04 01:42:46 +00:00
- htdocs/support/*
- htdocs/test/*
analyse:
- htdocs/includes/*
2019-05-15 11:20:11 +00:00
checkAlwaysTrueCheckTypeFunctionCall: false
checkAlwaysTrueInstanceof: false
checkAlwaysTrueStrictComparison: false
checkClassCaseSensitivity: false
checkFunctionArgumentTypes: false
checkFunctionNameCase: false
checkArgumentsPassedByReference: false
checkMaybeUndefinedVariables: false
checkNullables: false
checkThisOnly: true
checkUnionTypes: false
checkExplicitMixedMissingReturn: false
reportMaybes: false
reportMaybesInMethodSignatures: false
reportStaticMethodSignatures: false
polluteScopeWithLoopInitialAssignments: true
polluteScopeWithAlwaysIterableForeach: true
reportMagicMethods: false
reportMagicProperties: false
2019-05-15 16:59:46 +00:00
ignoreErrors:
- '#Undefined variable: \$langs#'
- '#Undefined variable: \$user#'
- '#Undefined variable: \$db#'
- '#Undefined variable: \$conf#'
- '#Undefined variable: \$hookmanager#'
2019-07-20 13:53:46 +00:00
- '#Undefined variable: \$mysoc#'
- '#Undefined variable: \$error#'
- '#Undefined variable: \$errors#'
2019-07-20 14:22:00 +00:00
- '#Undefined variable: \$form#'
2023-11-17 02:06:24 +00:00
- '#has an unused parameter \$param#'
2023-08-06 11:19:34 +00:00
- '#Function llxHeader invoked with#'
2023-08-05 23:14:36 +00:00
- '#Function llxHeaderVierge invoked with#'
2023-11-17 02:16:38 +00:00
- '#Function llxFooter invoked with#'
- '#Function llxFooterVierge invoked with#'
2023-08-06 11:02:33 +00:00
- '#If condition is always true#'
- '#always exists and is not falsy#'
2023-08-06 11:19:34 +00:00
- '#is always true#'
- '#is always fal#'
2023-12-23 17:47:38 +00:00
- '#has no return type specified#'
2023-08-06 11:02:33 +00:00
- '#always exists and is not nullable#'
2023-08-06 11:19:34 +00:00
- '#PHPDoc tag @return has invalid value#'
- '#type has no value type specified in iterable type array#'
- '#with no value type specified in iterable type array#'
- '#Empty array passed to foreach#'
2023-12-23 17:47:38 +00:00
- '#Result of function fieldList#'
2023-08-06 11:19:34 +00:00
- '#in isset\(\) is not nullable#'
2023-11-19 12:21:08 +00:00
- '#in isset\(\) is never defined#'
2023-11-19 12:26:00 +00:00
- '#(\$force_dolibarr_lib|\$dolibarr_main_db).*in empty\(\) is never defined.#'
2023-12-23 17:47:38 +00:00
- '#Caught class Stripe#'
2023-11-17 02:33:37 +00:00
- '#Sprain\\SwissQrBill\\#'
2023-11-28 21:54:48 +00:00
- '#Constructor of class DolEditor has an unused parameter \$toolbarlocation#'
2023-12-27 11:14:45 +00:00
- '#Constructor of class DoliDB\w+ has an unused parameter \$type#'
2019-05-15 11:20:11 +00:00
internalErrorsCountLimit: 50
cache:
nodesByFileCountMax: 512
nodesByStringCountMax: 512
2023-08-05 11:46:58 +00:00
reportUnmatchedIgnoredErrors: false
2019-05-15 11:20:11 +00:00
universalObjectCratesClasses:
- stdClass
- SimpleXMLElement
earlyTerminatingMethodCalls: []
dynamicConstantNames:
- ICONV_IMPL
- PHP_VERSION
- PHP_MAJOR_VERSION
- PHP_MINOR_VERSION
- PHP_RELEASE_VERSION
- PHP_VERSION_ID
- PHP_EXTRA_VERSION
- PHP_ZTS
- PHP_DEBUG
- PHP_MAXPATHLEN
- PHP_OS
- PHP_OS_FAMILY
- PHP_SAPI
- PHP_EOL
- PHP_INT_MAX
- PHP_INT_MIN
- PHP_INT_SIZE
- PHP_FLOAT_DIG
- PHP_FLOAT_EPSILON
- PHP_FLOAT_MIN
- PHP_FLOAT_MAX
- DEFAULT_INCLUDE_PATH
- PEAR_INSTALL_DIR
- PEAR_EXTENSION_DIR
- PHP_EXTENSION_DIR
- PHP_PREFIX
- PHP_BINDIR
- PHP_BINARY
- PHP_MANDIR
- PHP_LIBDIR
- PHP_DATADIR
- PHP_SYSCONFDIR
- PHP_LOCALSTATEDIR
- PHP_CONFIG_FILE_PATH
- PHP_CONFIG_FILE_SCAN_DIR
- PHP_SHLIB_SUFFIX
- PHP_FD_SETSIZE