From 83ea358869af804ef768a9cd110093e56dfe3983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Kru=CC=88ss?= Date: Sat, 5 Nov 2022 16:26:06 -0700 Subject: [PATCH 1/2] remove old rules --- phpstan-baseline.neon | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 77fd0c0b..169c11ba 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,15 +1,5 @@ parameters: ignoreErrors: - - - message: "#^Parameter \\#1 \\$name of class RedisCluster constructor expects string\\|null, array given\\.$#" - count: 1 - path: .php-tools/object-cache.php - - - - message: "#^Call to function is_string\\(\\) with array\\{'tcp\\://127\\.0\\.0\\.1…', 'tcp\\://127\\.0\\.0\\.2…', 'tcp\\://127\\.0\\.0\\.3…'\\} will always evaluate to false\\.$#" - count: 3 - path: .php-tools/object-cache.php - - message: "#^Class RedisCluster constructor invoked with 1 parameter, 2\\-6 required\\.$#" count: 1 From 5b9bcb9b7541c18fd70d6c671c822d252e394e8c Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Wed, 18 Sep 2024 14:17:10 +0300 Subject: [PATCH 2/2] Add Plugin check action --- .github/workflows/lint.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 386cc52e..3964b6b4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -55,3 +55,16 @@ jobs: with: eclint_args: | -exclude=dependencies/**/* + + plugincheck: + name: PluginCheck + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run plugin check + uses: wordpress/plugin-check-action@v1 + with: + exclude-directories: 'dependencies'