mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-27 04:56:13 +01:00

[TASK] Use the parallel runner for PHP-CS-Fixer (#1326)

Enable the new option to speed things up.
Keep comment from upstream code.

Resolves: #1316
This commit is contained in:
Daniel Siepmann 2024-05-24 22:32:01 +02:00 committed by GitHub
parent d9347c174c
commit 8508d9ee1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,10 @@
<?php
$config = \TYPO3\CodingStandards\CsFixerConfig::create();
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
use TYPO3\CodingStandards\CsFixerConfig;
$config = CsFixerConfig::create();
// @TODO 4.0 no need to call this manually
$config->setParallelConfig(ParallelConfigFactory::detect());
$config->getFinder()->in('Classes')->in('Configuration')->in('Tests');
return $config;