dolibarr/phpstan.neon.dist

127 lines
3.6 KiB
Text
Raw Normal View History

add baseline exclude for phpstan (#31632) * add baseline exclude for phpstan * update * update * update * update * update * merge * restore one filter * delete old errors * fix * fix * fix * $moreforfilter can t be empty * fix * enable check * refresh baseline * add phpdoc * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 22:53:20 +00:00
includes:
- dev/build/phpstan/phpstan-baseline.neon
2019-05-15 11:20:11 +00:00
parameters:
tmpDir: ./.github/tmp
parallel:
# Commented some of the settings, reminding the defaults:
# should adapt better to target machines
# jobSize: 8 # default is 20
processTimeout: 600.0
# maximumNumberOfProcesses: 20 # default is 32
# minimumNumberOfJobsPerProcess: 2 # default is 2
# buffer: 134217728 # 128 MB # Not documented
2023-08-04 00:38:10 +00:00
customRulesetUsed: true
level: 10
2019-05-15 11:20:11 +00:00
fileExtensions:
- php
2023-08-04 01:42:46 +00:00
paths:
2024-01-23 19:14:35 +00:00
- htdocs
- 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/documents/*
2025-02-13 19:59:43 +00:00
- htdocs/install/* # We must exclude this dir to avoid to have DOL_DOCUMENT_ROOT defined to .. by inc.php before the bootstrap*.php file can load it.
2023-08-04 01:42:46 +00:00
- 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/*
analyse:
2025-01-09 20:01:00 +00:00
- htdocs/includes/geoPHP/*
- htdocs/includes/markrogoyski/*
- htdocs/includes/maximebf/*
- htdocs/includes/mike42/*
- htdocs/includes/mobiledetect/*
- htdocs/includes/nusoap/*
- htdocs/includes/OAuth/*
- htdocs/includes/odtphp/zip/*
- htdocs/includes/parsedown/*
- htdocs/includes/php-iban/*
- htdocs/includes/phpoffice/*
- htdocs/includes/printipp/*
- htdocs/includes/Psr/*
- htdocs/includes/restler/*
- htdocs/includes/sabre/*
- htdocs/includes/stripe/*
- htdocs/includes/swiftmailer/*
- htdocs/includes/symfony/*
- htdocs/includes/tcpdi/*
- htdocs/includes/tecnickcom/*
- htdocs/includes/webklex/*
- htdocs/core/class/lessc.class.php
# checkAlwaysTrueCheckTypeFunctionCall: false
# checkAlwaysTrueInstanceof: false
2024-11-15 14:20:48 +00:00
# checkAlwaysTrueStrictComparison: false
2024-06-18 13:48:18 +00:00
checkClassCaseSensitivity: true
checkFunctionArgumentTypes: true
checkFunctionNameCase: true
add baseline exclude for phpstan (#31632) * add baseline exclude for phpstan * update * update * update * update * update * merge * restore one filter * delete old errors * fix * fix * fix * $moreforfilter can t be empty * fix * enable check * refresh baseline * add phpdoc * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * update phpstan baseline * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 22:53:20 +00:00
checkArgumentsPassedByReference: true
checkMaybeUndefinedVariables: true
2019-05-15 11:20:11 +00:00
checkNullables: false
checkThisOnly: true
checkUnionTypes: false
2024-06-18 13:48:18 +00:00
checkExplicitMixedMissingReturn: true
2019-05-15 11:20:11 +00:00
reportMaybes: false
reportMaybesInMethodSignatures: false
reportStaticMethodSignatures: false
polluteScopeWithLoopInitialAssignments: true
polluteScopeWithAlwaysIterableForeach: true
reportMagicMethods: false
reportMagicProperties: false
2024-04-29 18:02:09 +00:00
treatPhpDocTypesAsCertain: false
2025-05-05 19:30:32 +00:00
# if you want to exclude something, generate the baseline to do that, add here give only pattern that does not give the opportunity to introduce new errors
2025-08-10 01:35:30 +00:00
# or pattern to avoid false positive of some bugged or allowed phpstan checks
2019-05-15 16:59:46 +00:00
ignoreErrors:
- '#.*phan-var#'
- '#^Expression "''…" on a separate line does not do anything\.$#'
- '#Empty array passed to foreach#'
2025-05-05 19:30:32 +00:00
- '#Unable to resolve the template type T#'
2025-08-10 01:49:12 +00:00
- '#in empty\(\) always exists and is always falsy.#'
2019-05-15 11:20:11 +00:00
internalErrorsCountLimit: 50
cache:
# nodesByFileCountMax: 512
2024-01-23 19:14:35 +00:00
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