2019-05-15 13:20:11 +02:00
|
|
|
parameters:
|
2024-01-14 13:14:52 +01:00
|
|
|
tmpDir: ./.github/tmp
|
|
|
|
|
parallel:
|
2024-03-11 14:04:02 +01:00
|
|
|
# Commented some of the settings, reminding the defaults:
|
|
|
|
|
# should adapt better to target machines
|
|
|
|
|
# jobSize: 8 # default is 20
|
2024-01-14 13:14:52 +01:00
|
|
|
processTimeout: 600.0
|
2024-03-11 14:04:02 +01:00
|
|
|
# maximumNumberOfProcesses: 20 # default is 32
|
|
|
|
|
# minimumNumberOfJobsPerProcess: 2 # default is 2
|
|
|
|
|
# buffer: 134217728 # 128 MB # Not documented
|
2023-08-04 02:38:10 +02:00
|
|
|
customRulesetUsed: true
|
2024-08-13 23:16:09 +02:00
|
|
|
level: 5
|
2019-05-15 13:20:11 +02:00
|
|
|
fileExtensions:
|
|
|
|
|
- php
|
2023-08-04 03:42:46 +02:00
|
|
|
paths:
|
2024-01-23 20:14:35 +01:00
|
|
|
- htdocs
|
|
|
|
|
- scripts
|
2023-08-04 02:57:10 +02:00
|
|
|
excludePaths:
|
2023-08-04 03:42:46 +02:00
|
|
|
analyseAndScan:
|
2023-12-15 11:18:04 +01:00
|
|
|
- htdocs/custom/*
|
2023-08-04 03:42:46 +02:00
|
|
|
- htdocs/documents/*
|
|
|
|
|
- htdocs/install/doctemplates/*
|
|
|
|
|
- htdocs/langs/*
|
2023-08-24 14:31:10 +02:00
|
|
|
- htdocs/modulebuilder/template/test/*
|
2023-08-04 03:42:46 +02:00
|
|
|
- htdocs/support/*
|
|
|
|
|
analyse:
|
|
|
|
|
- htdocs/includes/*
|
2019-05-15 13:20:11 +02:00
|
|
|
checkAlwaysTrueCheckTypeFunctionCall: false
|
|
|
|
|
checkAlwaysTrueInstanceof: false
|
|
|
|
|
checkAlwaysTrueStrictComparison: false
|
2024-06-18 15:48:18 +02:00
|
|
|
checkClassCaseSensitivity: true
|
2024-07-03 02:30:53 +02:00
|
|
|
checkFunctionArgumentTypes: true
|
2024-01-14 13:14:52 +01:00
|
|
|
checkFunctionNameCase: true
|
2019-05-15 13:20:11 +02:00
|
|
|
checkArgumentsPassedByReference: false
|
|
|
|
|
checkMaybeUndefinedVariables: false
|
|
|
|
|
checkNullables: false
|
|
|
|
|
checkThisOnly: true
|
|
|
|
|
checkUnionTypes: false
|
2024-06-18 15:48:18 +02:00
|
|
|
checkExplicitMixedMissingReturn: true
|
2019-05-15 13:20:11 +02:00
|
|
|
reportMaybes: false
|
|
|
|
|
reportMaybesInMethodSignatures: false
|
|
|
|
|
reportStaticMethodSignatures: false
|
|
|
|
|
polluteScopeWithLoopInitialAssignments: true
|
|
|
|
|
polluteScopeWithAlwaysIterableForeach: true
|
|
|
|
|
reportMagicMethods: false
|
|
|
|
|
reportMagicProperties: false
|
2024-04-29 20:02:09 +02:00
|
|
|
treatPhpDocTypesAsCertain: false
|
2019-05-15 18:59:46 +02:00
|
|
|
ignoreErrors:
|
2024-01-14 13:14:52 +01:00
|
|
|
- '#Result of function fieldList#'
|
2024-07-09 19:28:09 +02:00
|
|
|
- '#Function llxHeaderVierge invoked with#'
|
2023-08-06 13:02:33 +02:00
|
|
|
- '#always exists and is not falsy#'
|
2024-05-01 17:49:21 +02:00
|
|
|
- '#always exists and is not nullable#'
|
2023-08-06 13:19:34 +02:00
|
|
|
- '#is always fal#'
|
2024-04-30 13:41:27 +02:00
|
|
|
- '#is always true#'
|
2024-07-31 18:39:02 +02:00
|
|
|
- '#is_object\(\) with mixed will always evaluate to false#'
|
2024-05-01 17:49:21 +02:00
|
|
|
- '#Empty array passed to foreach#'
|
2024-07-31 18:39:02 +02:00
|
|
|
- '#in empty\(\) is not falsy#'
|
2024-04-30 18:56:36 +02:00
|
|
|
- '#in isset\(\) is not nullable#'
|
2023-11-19 13:26:00 +01:00
|
|
|
- '#(\$force_dolibarr_lib|\$dolibarr_main_db).*in empty\(\) is never defined.#'
|
2023-11-17 03:33:37 +01:00
|
|
|
- '#Sprain\\SwissQrBill\\#'
|
2024-01-14 13:14:52 +01:00
|
|
|
- '#Constructor of class .* has an unused parameter #'
|
2024-05-13 12:42:26 +02:00
|
|
|
- '#Dead catch - Exception is never thrown in the try block#'
|
2024-06-23 17:46:34 +02:00
|
|
|
- '#.*phan-var#'
|
2024-07-03 02:30:53 +02:00
|
|
|
- '#\$httpStatusCode of class Luracast\\Restler\\RestException constructor expects string, int given.#'
|
|
|
|
|
- '#expects \(callable#'
|
2024-07-09 19:28:59 +02:00
|
|
|
- '#expects bool\|string#'
|
|
|
|
|
- '#expects bool, int#'
|
2024-09-16 01:46:20 +02:00
|
|
|
- '# (dol_getdate|dol_concatdesc|vatrate) expects bool, string given.#'
|
|
|
|
|
- '# SMTPs::(getFrom|getErrorsTo|getReplyTo)\(\) expects bool, string given.#'
|
|
|
|
|
- '# (dolibarr_set_const|yn|getLocalTaxesFromRate) expects int\|string#'
|
|
|
|
|
- '#::(options)\(\) expects int\|string#'
|
|
|
|
|
- '# (print_barre_liste|getCurrentPeriodOfFiscalYear|dol_substr|get_next_value) expects int\|null#'
|
2024-07-06 14:30:13 +02:00
|
|
|
- '#color.* expects int, string#'
|
|
|
|
|
- '#imap.* expects int, string#'
|
2024-09-16 01:46:20 +02:00
|
|
|
- '# (Setup|Asset|Proposals|Orders|Invoices|FactureRec|BonPrelevement|Products|Thirdparties)::_fetch\S*\(\) expects int, string#'
|
2024-09-20 00:32:44 +02:00
|
|
|
- '#(getFullName|sendTicketMessageByEmail|addItemsFact|update_price|recur|addDepreciationLine|addline|generate|buildRumNumber|update|update_label|getSelectConditionsPaiements|select_state|listBoxes|addLineRec|literalBarcodeType)\(\) expects int, string#'
|
2024-07-06 14:30:13 +02:00
|
|
|
- '#run_sql expects int, string#'
|
2024-08-13 23:16:09 +02:00
|
|
|
- '#on array{url: mixed} in empty\(\) does not exist.#'
|
2024-09-05 16:05:37 +02:00
|
|
|
- '#dol_copy expects string, int given#'
|
|
|
|
|
- '#EvalMath::trigger\(\) expects string, int given#'
|
|
|
|
|
- '#get_next_value expects string, int given#'
|
2024-09-16 01:46:20 +02:00
|
|
|
- '# Diff::generatePartialDiff\(\) expects array#'
|
|
|
|
|
- '# EmailCollector::getpart\(\) expects string#'
|
2024-07-04 17:47:31 +02:00
|
|
|
- '#expects int, float#'
|
2024-09-16 01:46:20 +02:00
|
|
|
- '#::saveboxorder\(\) expects int, array#'
|
|
|
|
|
- '# (print_projecttasks(_array)?|dol_time_plus_duree|get_default_tva|get_default_npr) expects int, array#'
|
|
|
|
|
- '# (fetchObjectByElement|print_actions_filter|dol_mktime|dol_get_first_day|dol_get_last_day|dol_remove_file_process|displayUsersListWithPicto) expects int, array\|string given.#'
|
|
|
|
|
- '# (CSMSFile) constructor expects int, array\|string given.#'
|
2024-09-13 03:09:23 +02:00
|
|
|
- "# (img_picto) expects int<0, 1>, (false|'') given.#"
|
2024-07-03 02:30:53 +02:00
|
|
|
- '#expects float\|string#'
|
|
|
|
|
- '#expects float\|null#'
|
|
|
|
|
- '#expects float, string given.#'
|
2024-07-04 17:47:31 +02:00
|
|
|
- '#expects string\|null,#'
|
2024-09-16 01:46:20 +02:00
|
|
|
- '# (envoi_mail|sendEmailTo) expects string, \(float\|int\) given.#'
|
|
|
|
|
- '#::printStdColumnContent\(\) expects string, float(\|(int|array)(\<.*\>)?)* given.#'
|
|
|
|
|
- '#::HTML2OpenIDServer\(\) expects string, array given.#'
|
|
|
|
|
- '# (dol_strlen|vatrate) expects string, float(\|(int|array)(\<.*\>)?)* given.#'
|
|
|
|
|
- '#create_line\(\) expects string, float given.#'
|
|
|
|
|
- '# dol_stringtotime expects string, DateTime given.#'
|
|
|
|
|
- '# (show_ldap_content|projectLinesa) expects string, true given.#'
|
2024-07-04 17:47:31 +02:00
|
|
|
- '#expects string, bool\|mysqli_result\|resource given.#'
|
2024-09-16 01:46:20 +02:00
|
|
|
- '#( |::)((multi)?selectarray)\(\) expects array#'
|
|
|
|
|
- '# (reWriteAllMenus|check_authentication) expects array#'
|
|
|
|
|
- '#::(_validateMyObject|select_company)\(\) expects array<string#'
|
2024-09-20 17:25:39 +02:00
|
|
|
- '# dolGetButtonTitle expects array<string#'
|
2024-09-16 01:46:20 +02:00
|
|
|
- '# getNav expects array#'
|
|
|
|
|
- '# getCommonSubstitutionArray expects array#'
|
|
|
|
|
- '# ajax_constantonoff expects array, null given.#'
|
|
|
|
|
- '# ldap_search expects array\|LDAP#'
|
|
|
|
|
- '# ajax_combobox expects array#'
|
|
|
|
|
- '# Context::setError\(\) expects array, string#'
|
|
|
|
|
- '# Form::formconfirm\(\) expects array#'
|
|
|
|
|
- '# FormWebPortal::selectForForms\(\) expects int, array#'
|
|
|
|
|
- '# Lettering::getBankLinesFromFkDocAndDocType\(\) expects array#'
|
|
|
|
|
- '# (Odf) constructor expects #'
|
|
|
|
|
- '# Stripe[^ ]+::all\(\) expects #'
|
2024-07-03 02:30:53 +02:00
|
|
|
- '#expects resource#'
|
|
|
|
|
- '#expects object#'
|
|
|
|
|
- '#expects FTP\\Connection#'
|
|
|
|
|
- '#expects LDAP\\Connection#'
|
|
|
|
|
- '#expects MultiCurrency#'
|
|
|
|
|
- '#expects Facture#'
|
|
|
|
|
- '#expects Paiement#'
|
|
|
|
|
- '#expects PgSql\\Result#'
|
|
|
|
|
- '#expects Societe#'
|
2024-07-04 17:47:31 +02:00
|
|
|
- '#expects ''''\|Societe#'
|
2024-07-03 02:30:53 +02:00
|
|
|
- '#expects CommonObjectLine#'
|
|
|
|
|
- '#colorHexToHsl expects#'
|
2019-05-15 13:20:11 +02:00
|
|
|
internalErrorsCountLimit: 50
|
|
|
|
|
cache:
|
2024-01-23 20:14:35 +01:00
|
|
|
nodesByFileCountMax: 512
|
|
|
|
|
nodesByStringCountMax: 512
|
2023-08-05 13:46:58 +02:00
|
|
|
reportUnmatchedIgnoredErrors: false
|
2019-05-15 13:20:11 +02: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
|