From 7ed196db69605f89682db5cf8d95f0b23f3510fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 19 May 2021 14:10:41 +0200 Subject: [PATCH] Fix: Rename .php_cs to .php-cs-fixer.php --- .github/workflows/integrate.yaml | 2 +- .github/workflows/renew.yaml | 2 +- .php_cs => .php-cs-fixer.php | 4 ++-- Makefile | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename .php_cs => .php-cs-fixer.php (89%) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index e726bbfc..35c44ba4 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -78,7 +78,7 @@ jobs: restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" - name: "Run friendsofphp/php-cs-fixer" - run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --dry-run --verbose" + run: "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --diff-format=udiff --dry-run --verbose" dependency-analysis: name: "Dependency Analysis" diff --git a/.github/workflows/renew.yaml b/.github/workflows/renew.yaml index 9022f1e9..3efdc0e6 100644 --- a/.github/workflows/renew.yaml +++ b/.github/workflows/renew.yaml @@ -67,7 +67,7 @@ jobs: restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" - name: "Run friendsofphp/php-cs-fixer" - run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose" + run: "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --diff-format=udiff --verbose" - name: "Commit modified files" uses: "stefanzweifel/git-auto-commit-action@v4.11.0" diff --git a/.php_cs b/.php-cs-fixer.php similarity index 89% rename from .php_cs rename to .php-cs-fixer.php index 9cc26797..07954fbd 100644 --- a/.php_cs +++ b/.php-cs-fixer.php @@ -36,8 +36,8 @@ ]) ->ignoreDotFiles(false) ->in(__DIR__) - ->name('.php_cs'); + ->name('.php-cs-fixer.php'); -$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php_cs.cache'); +$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache'); return $config; diff --git a/Makefile b/Makefile index f449ce2e..1ee1dfb9 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ coding-standards: vendor ## Normalizes composer.json with ergebnis/composer-norm .phive/composer-normalize yamllint -c .yamllint.yaml --strict . mkdir -p .build/php-cs-fixer - vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose + vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --diff-format=udiff --verbose .PHONY: dependency-analysis dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-require-checker