Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-cs-fixer: utilize multiple processors #4674

Merged
merged 16 commits into from May 13, 2021
3 changes: 2 additions & 1 deletion .github/workflows/code-style.yml
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Fix code style
if: env.writable == 1
run: vendor/bin/php-cs-fixer fix --diff
run: vendor/bin/php-cs-fixer list-files --config=.php-cs-fixer.dist.php | xargs -n 250 -P 3 vendor/bin/php-cs-fixer fix --diff --config=.php-cs-fixer.dist.php

- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v4
Expand All @@ -50,6 +50,7 @@ jobs:
commit_user_email: rex-bot@users.noreply.github.com

- name: Check code style
if: env.writable == 0
run: vendor/bin/php-cs-fixer fix --ansi --diff --dry-run --format=checkstyle | cs2pr # check whether there are still errors left

rector:
Expand Down