mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
chore: add parallel run php-cs-fixer config
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user