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 customRulesetUsed: true level: 5 fileExtensions: - php paths: - htdocs - scripts excludePaths: analyseAndScan: - htdocs/custom/* - htdocs/documents/* - htdocs/install/doctemplates/* - htdocs/langs/* - htdocs/modulebuilder/template/test/* - htdocs/support/* analyse: - htdocs/includes/* checkAlwaysTrueCheckTypeFunctionCall: false checkAlwaysTrueInstanceof: false checkAlwaysTrueStrictComparison: false checkClassCaseSensitivity: true checkFunctionArgumentTypes: true checkFunctionNameCase: true checkArgumentsPassedByReference: false checkMaybeUndefinedVariables: false checkNullables: false checkThisOnly: true checkUnionTypes: false checkExplicitMixedMissingReturn: true reportMaybes: false reportMaybesInMethodSignatures: false reportStaticMethodSignatures: false polluteScopeWithLoopInitialAssignments: true polluteScopeWithAlwaysIterableForeach: true reportMagicMethods: false reportMagicProperties: false treatPhpDocTypesAsCertain: false ignoreErrors: - '#Result of function fieldList#' - '#Function llxHeaderVierge invoked with#' - '#always exists and is not falsy#' - '#always exists and is not nullable#' - '#Call to function is_resource\(\) with#' - '#is always fal#' - '#is always true#' - '#is_object\(\) with mixed will always evaluate to false#' - '#Empty array passed to foreach#' - '#in empty\(\) is not falsy#' - '#in isset\(\) is not nullable#' - '#(\$force_dolibarr_lib|\$dolibarr_main_db).*in empty\(\) is never defined.#' - '#Sprain\\SwissQrBill\\#' - '#Constructor of class .* has an unused parameter #' - '#Dead catch - Exception is never thrown in the try block#' - '#.*phan-var#' - '#\$httpStatusCode of class Luracast\\Restler\\RestException constructor expects string, int given.#' - '#expects \(callable#' - '#expects bool\|string#' - '#expects bool, int#' - '# (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#' - '#color.* expects int, string#' - '#imap.* expects int, string#' - '#convert.* expects int, string#' - '# (Setup|Asset|Proposals|Orders|Invoices|FactureRec|BonPrelevement|Products|Thirdparties)::_fetch\S*\(\) expects int, string#' - '#(getFullName|sendTicketMessageByEmail|addItemsFact|update_price|setPhoneNumber|recur|addDepreciationLine|addline|generate|buildRumNumber|update|update_label|getSelectConditionsPaiements|select_state|listBoxes|addLineRec|literalBarcodeType)\(\) expects int, string#' - '#run_sql expects int, string#' - '#on array{url: mixed} in empty\(\) does not exist.#' - '#dol_copy expects string, int given#' - '#dol_getIdFromCode expects string, int given#' - '#EvalMath::trigger\(\) expects string, int given#' - '#get_next_value expects string, int given#' - '# Diff::generatePartialDiff\(\) expects array#' - '# EmailCollector::getpart\(\) expects string#' - '#expects int, float#' - '#::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.#' - "# (img_picto) expects int<0, 1>, (false|'') given.#" - '#expects float\|string#' - '#expects float\|null#' - '#expects float, string given.#' - '#expects string\|null,#' - '# (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.#' - '# (load_fiche_titre|dol_add_file_process|setEventMessages) expects string, null given.#' - '# (show_ldap_content|projectLinesa) expects string, true given.#' - '# DolEditor constructor expects string, false given.#' - '# dol_eval expects string, array given.#' - '#expects string, bool\|mysqli_result\|resource given.#' - '#( |::)((multi)?selectarray)\(\) expects array#' - '# (reWriteAllMenus|check_authentication) expects array#' - '# (dol_get_fiche_head) expects array