]> git.mxchange.org Git - friendica.git/commitdiff
Adjust PHP-CS Fixer
authorPhilipp <admin@philipp.info>
Thu, 8 Apr 2021 21:16:55 +0000 (23:16 +0200)
committerPhilipp <admin@philipp.info>
Thu, 8 Apr 2021 21:16:55 +0000 (23:16 +0200)
- Just test new added files

.github/workflows/lint.yml

index 09dfde822ba86b006d7198aaa6952cf97d1791e3..72f53c901f80bd43707d9c0771c2c3ebb124c6c5 100644 (file)
@@ -37,6 +37,6 @@ jobs:
         run: bin/composer.phar run cs:install
       - 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
+          if ! echo "${{ steps.changes.outputs.added }}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${{ steps.changes.outputs.added }}"); else EXTRA_ARGS=''; fi
           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