Skip to content

Commit

Permalink
feat: activated parallel option for php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Jun 9, 2024
1 parent 850e487 commit 9c66fd4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

declare(strict_types=1);

$finder = PhpCsFixer\Finder::create()
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

$finder = Finder::create()
->in(__DIR__)
->exclude('var')
;

return (new PhpCsFixer\Config())
return (new Config())
->setRules([
// taken from the Symfony config // https://github.com/symfony/symfony/blob/7.1/.php-cs-fixer.dist.php
'@Symfony' => true, // https://cs.symfony.com/doc/ruleSets/Symfony.html
Expand All @@ -31,4 +35,5 @@
->setRiskyAllowed(true)
->setFinder($finder)
->setCacheFile('.php-cs-fixer.cache')
->setParallelConfig(ParallelConfigFactory::detect())
;

0 comments on commit 9c66fd4

Please sign in to comment.