From 5b40509ac3108adf97cc0abf86d8993d89fafd5f Mon Sep 17 00:00:00 2001 From: Brette Fitzgibbon <79230918+BretteConnolly@users.noreply.github.com> Date: Fri, 13 Dec 2024 02:58:33 +0000 Subject: [PATCH 1/3] Created pint.json file for format and lint script configuration --- pint.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 pint.json diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..70add70 --- /dev/null +++ b/pint.json @@ -0,0 +1,6 @@ +{ + "preset": "psr12", + "exclude": [ + "tests/resources" + ] +} \ No newline at end of file From 373de30924f403913b1d307c9986cccc0c24bfe2 Mon Sep 17 00:00:00 2001 From: Brette Fitzgibbon <79230918+BretteConnolly@users.noreply.github.com> Date: Fri, 13 Dec 2024 03:00:25 +0000 Subject: [PATCH 2/3] Updated scripts configurations with pint.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9f253b3..52d294f 100644 --- a/composer.json +++ b/composer.json @@ -12,8 +12,8 @@ "psr-4": {"Utopia\\Tests\\Compression\\":"tests/Compression"} }, "scripts": { - "lint": "./vendor/bin/pint --test", - "format": "./vendor/bin/pint" + "lint": "./vendor/bin/pint --test --config pint.json", + "format": "./vendor/bin/pint --config pint.json" }, "require": { "php": ">=8.0" From 8b2828579d03616039008559a8347db85a3bfde3 Mon Sep 17 00:00:00 2001 From: Brette Fitzgibbon <79230918+BretteConnolly@users.noreply.github.com> Date: Fri, 13 Dec 2024 03:04:42 +0000 Subject: [PATCH 3/3] Updated linter to have actions/checkout@v2 instead of @v3 --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index bca79de..aa1e05b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -8,7 +8,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v2 with: fetch-depth: 2