From a8a0db692a402a3e844eb7db3760e52c0dc85114 Mon Sep 17 00:00:00 2001 From: Andreas Wolf Date: Mon, 8 Apr 2024 17:16:00 +0200 Subject: [PATCH] Split code style check into check and fix commands --- .github/workflows/lint_test_pull_requests.yaml | 2 +- extension-installer/composer.json | 3 ++- fractor-xml/composer.json | 3 ++- fractor/composer.json | 3 ++- typo3-fractor/composer.json | 3 ++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint_test_pull_requests.yaml b/.github/workflows/lint_test_pull_requests.yaml index 3bdb25da..2ecc3483 100644 --- a/.github/workflows/lint_test_pull_requests.yaml +++ b/.github/workflows/lint_test_pull_requests.yaml @@ -12,7 +12,7 @@ jobs: matrix: composer-command: - name: PHP Code Style - command: 'style:php' + command: 'style:php:check' - name: Composer normalize command: 'normalize --dry-run' - name: PHPStan diff --git a/extension-installer/composer.json b/extension-installer/composer.json index 54a68444..11920190 100644 --- a/extension-installer/composer.json +++ b/extension-installer/composer.json @@ -36,6 +36,7 @@ }, "scripts": { "analyze:php": "phpstan analyze", - "style:php": "ecs" + "style:php:check": "ecs", + "style:php:fix": "ecs --fix" } } diff --git a/fractor-xml/composer.json b/fractor-xml/composer.json index 333441f4..a53b3d4c 100644 --- a/fractor-xml/composer.json +++ b/fractor-xml/composer.json @@ -48,7 +48,8 @@ }, "scripts": { "analyze:php": "phpstan analyze", - "style:php": "ecs", + "style:php:check": "ecs", + "style:php:fix": "ecs --fix", "test:php": "phpunit tests/" } } diff --git a/fractor/composer.json b/fractor/composer.json index b72d2dd7..bba74871 100644 --- a/fractor/composer.json +++ b/fractor/composer.json @@ -45,7 +45,8 @@ }, "scripts": { "analyze:php": "phpstan analyze", - "style:php": "ecs --fix", + "style:php:check": "ecs", + "style:php:fix": "ecs --fix", "test:php": "phpunit tests/" } } diff --git a/typo3-fractor/composer.json b/typo3-fractor/composer.json index a1c4da87..71cfb3da 100644 --- a/typo3-fractor/composer.json +++ b/typo3-fractor/composer.json @@ -48,7 +48,8 @@ }, "scripts": { "analyze:php": "phpstan analyze", - "style:php": "ecs", + "style:php:check": "ecs", + "style:php:fix": "ecs --fix", "test:php": "phpunit tests/" } }