Skip to content

Commit

Permalink
feat(config): Add parallel config for PHP-CS-Fixer
Browse files Browse the repository at this point in the history
- Added ParallelConfigFactory for parallel execution
  • Loading branch information
guanguans committed Jun 6, 2024
1 parent 2a8a473 commit bd32330
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

// oskarstark/php-cs-fixer-ga
require_once __DIR__.'/vendor/autoload.php';
Expand Down Expand Up @@ -64,6 +65,7 @@
->setRiskyAllowed(true)
->setUsingCache(false)
->setCacheFile(__DIR__.'/.php-cs-fixer.cache')
->setParallelConfig(ParallelConfigFactory::detect())
->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers())
// ->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers())
->setRules([
Expand Down

0 comments on commit bd32330

Please sign in to comment.