From: Philipp Date: Wed, 7 Apr 2021 18:17:35 +0000 (+0200) Subject: Add "--diff" for php-cs-fixer X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6217041753bdb0abc6d91a31a9985c7f8bef1b19;hp=--cc;p=friendica.git Add "--diff" for php-cs-fixer --- 6217041753bdb0abc6d91a31a9985c7f8bef1b19 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 35addd93c6..09dfde822b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -38,5 +38,5 @@ jobs: - name: Run coding standards check run: | if ! echo "${{ steps.changes.outputs.all }}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${{ steps.changes.outputs.all }}"); else EXTRA_ARGS=''; fi - bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS} + bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --diff --diff-format=udiff --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS} shell: bash \ No newline at end of file