From 5d68744983fc26fbf3228a8d8eb8be0d6c050afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 20 Dec 2023 18:30:35 +0100 Subject: [PATCH] clean ignore --- .github/workflows/phpstan.yml | 2 +- phpstan_action.neon | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index fd381e42043..fa5df7e72fb 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -36,7 +36,7 @@ jobs: with: php-version: "${{ matrix.php-version }}" tools: phpstan, cs2pr - extensions: calendar, json, imagick, gd, zip, mbstring, intl, opcache, imap, mysql, pgsql, sqlite3, ldap, xml + extensions: calendar, json, imagick, gd, zip, mbstring, intl, opcache, imap, mysql, pgsql, sqlite3, ldap, xml, mcrypt - uses: actions/setup-node@v3 with: node-version: 14.x diff --git a/phpstan_action.neon b/phpstan_action.neon index 309c6951c95..c9034917e3d 100644 --- a/phpstan_action.neon +++ b/phpstan_action.neon @@ -46,16 +46,11 @@ parameters: reportMagicMethods: false reportMagicProperties: false ignoreErrors: - - '#has an unused parameter \$param#' - '#Result of function fieldList#' - '#Caught class Stripe#' - - '#Function llxHeader invoked with#' - - '#Function llxHeaderVierge invoked with#' - - '#Function llxFooter invoked with#' - - '#Function llxFooterVierge invoked with#' + - '#Function llx.* invoked with#' - '#If condition is always true#' - '#always exists and is not falsy#' - - '#has no return type specified#' - '#is always true#' - '#is always fal#' - '#always exists and is not nullable#' @@ -66,8 +61,7 @@ parameters: - '#in isset\(\) is never defined#' - '#(\$force_dolibarr_lib|\$dolibarr_main_db).*in empty\(\) is never defined.#' - '#Sprain\\SwissQrBill\\#' - - '#Constructor of class DolEditor has an unused parameter \$toolbarlocation#' - - '#Constructor of class DoliDB.* has an unused parameter \$type#' + - '#Constructor of class .* has an unused parameter #' - '#Default value of the parameter#' internalErrorsCountLimit: 50 cache: