From 55c4d34912585eefd3e168eba8f403f1f58ebf91 Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Thu, 16 May 2024 09:18:42 +0200 Subject: [PATCH] Enable parallel cs-fixer execution --- composer.json | 2 +- configs/.php-cs-fixer.php | 1 + recipes/phpro.symfony-conventions.1.0.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 85d31e7..55de492 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "require": { "php": "^8.1", "brianium/paratest": "^6.3|^7.0", - "php-cs-fixer/shim": "^3.18", + "php-cs-fixer/shim": "^3.57", "phpro/grumphp-shim": "^2.0", "phpunit/phpunit": "^9.5|^10.0" }, diff --git a/configs/.php-cs-fixer.php b/configs/.php-cs-fixer.php index 9befda9..859013c 100644 --- a/configs/.php-cs-fixer.php +++ b/configs/.php-cs-fixer.php @@ -13,6 +13,7 @@ ]) ) ->setRiskyAllowed(true) + ->setParallelConfig(\PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) ->setRules([ '@PSR12' => true, '@Symfony' => true, diff --git a/recipes/phpro.symfony-conventions.1.0.json b/recipes/phpro.symfony-conventions.1.0.json index f93855d..a8517bc 100644 --- a/recipes/phpro.symfony-conventions.1.0.json +++ b/recipes/phpro.symfony-conventions.1.0.json @@ -44,6 +44,7 @@ " ])", " )", " ->setRiskyAllowed(true)", + " ->setParallelConfig(\\PhpCsFixer\\Runner\\Parallel\\ParallelConfigFactory::detect())", " ->setRules([", " '@PSR12' => true,", " '@Symfony' => true,", @@ -121,7 +122,7 @@ "executable": false } }, - "ref": "1f1bca2d576942aece315d8e6462a0a1aea8572e" + "ref": "9f36cadf0e3b4158fbaa6c9c19e6f99931540094" } } } \ No newline at end of file