From b2698f08be27d09a0b77027570c480d6f7009138 Mon Sep 17 00:00:00 2001 From: Dima <9010963+message-dimke@users.noreply.github.com> Date: Sun, 2 Feb 2025 14:10:48 +0200 Subject: [PATCH 1/4] Just a test commit to check if linter are going to be run on the whole file or on the new lines only. --- src/PluginActivate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PluginActivate.php b/src/PluginActivate.php index de08d5506..64098981b 100644 --- a/src/PluginActivate.php +++ b/src/PluginActivate.php @@ -29,6 +29,9 @@ public function activate(): void { // Init the update class. $this->init_plugin_update(); + // do nothing + $a = 1; + // Maybe update the redirect option. ( new ActivationRedirect() )->maybe_update_redirect_option(); } From fc6251086adbf831d2752869c3f952b88bc7954b Mon Sep 17 00:00:00 2001 From: Dima <9010963+message-dimke@users.noreply.github.com> Date: Sun, 2 Feb 2025 14:27:07 +0200 Subject: [PATCH 2/4] Just a test commit to check if linter are going to be run on the whole file or on the new lines only. --- src/PluginActivate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PluginActivate.php b/src/PluginActivate.php index 64098981b..de5091b39 100644 --- a/src/PluginActivate.php +++ b/src/PluginActivate.php @@ -31,6 +31,7 @@ public function activate(): void { // do nothing $a = 1; + $b= 2; // Maybe update the redirect option. ( new ActivationRedirect() )->maybe_update_redirect_option(); From 679c59d428c5f66bbac4444c17ed56a9916f3d6f Mon Sep 17 00:00:00 2001 From: Dima <9010963+message-dimke@users.noreply.github.com> Date: Sun, 2 Feb 2025 14:33:05 +0200 Subject: [PATCH 3/4] Just a test commit to check if linter are going to be run on the whole file or on the new lines only. --- src/PluginActivate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PluginActivate.php b/src/PluginActivate.php index de5091b39..891b30704 100644 --- a/src/PluginActivate.php +++ b/src/PluginActivate.php @@ -32,6 +32,7 @@ public function activate(): void { // do nothing $a = 1; $b= 2; + $c=3; // Maybe update the redirect option. ( new ActivationRedirect() )->maybe_update_redirect_option(); From 8ff98a5dc9a0155bcdac46f9ea848f9b7a6d868f Mon Sep 17 00:00:00 2001 From: Dima <9010963+message-dimke@users.noreply.github.com> Date: Mon, 3 Feb 2025 10:16:57 +0200 Subject: [PATCH 4/4] passing a path to phpcs.xml into phpcs-changed GH action --- .github/workflows/php-cs-on-changes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php-cs-on-changes.yml b/.github/workflows/php-cs-on-changes.yml index 84b6f5c3b..6ef89fb13 100644 --- a/.github/workflows/php-cs-on-changes.yml +++ b/.github/workflows/php-cs-on-changes.yml @@ -44,4 +44,4 @@ jobs: - name: Run PHPCS if: steps.changed-files.outputs.any_changed == 'true' - run: vendor/bin/phpcs-changed --warning-severity=0 -s --git --git-base ${{ github.event.pull_request.base.sha }} ${{ steps.changed-files.outputs.all_changed_files }} + run: vendor/bin/phpcs-changed --standard=./phpcs.xml --warning-severity=0 -s --git --git-base ${{ github.event.pull_request.base.sha }} ${{ steps.changed-files.outputs.all_changed_files }}