chore: add parallel run php-cs-fixer config

This commit is contained in:
Younes ENNAJI
2024-05-31 10:04:29 +01:00
parent 6087a940c6
commit 87f015341e
+7 -2
View File
@@ -2,7 +2,11 @@
declare(strict_types=1); declare(strict_types=1);
$finder = PhpCsFixer\Finder::create() use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = Finder::create()
->in([ ->in([
__DIR__.'/src', __DIR__.'/src',
__DIR__.'/tests', __DIR__.'/tests',
@@ -11,7 +15,8 @@ $finder = PhpCsFixer\Finder::create()
->append([__FILE__]) ->append([__FILE__])
; ;
return (new PhpCsFixer\Config()) return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRiskyAllowed(true) ->setRiskyAllowed(true)
->setRules([ ->setRules([
'@PSR12' => true, '@PSR12' => true,