|
30 | 30 | use PhpCsFixer\FixerFactory; |
31 | 31 | use PhpCsFixer\RuleSet\RuleSets; |
32 | 32 | use PhpCsFixer\Runner\Event\FileProcessed; |
33 | | -use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; |
34 | 33 | use PhpCsFixer\Runner\Runner; |
35 | 34 | use PhpCsFixer\ToolInfoInterface; |
36 | 35 | use Symfony\Component\Console\Attribute\AsCommand; |
37 | 36 | use Symfony\Component\Console\Command\Command; |
38 | | -use Symfony\Component\Console\Formatter\OutputFormatter; |
39 | 37 | use Symfony\Component\Console\Input\ArrayInput; |
40 | 38 | use Symfony\Component\Console\Input\InputArgument; |
41 | 39 | use Symfony\Component\Console\Input\InputInterface; |
@@ -347,23 +345,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int |
347 | 345 | ) : ' sequentially', |
348 | 346 | )); |
349 | 347 |
|
350 | | - /** @TODO v4 remove warnings related to parallel runner */ |
351 | | - $availableMaxProcesses = ParallelConfigFactory::detect()->getMaxProcesses(); |
352 | | - if ($isParallel || $availableMaxProcesses > 1) { |
353 | | - $usageDocs = 'https://cs.symfony.com/doc/usage.html'; |
354 | | - $stdErr->writeln(\sprintf( |
355 | | - $stdErr->isDecorated() ? '<bg=yellow;fg=black;>%s</>' : '%s', |
356 | | - $isParallel |
357 | | - ? 'Parallel runner is an experimental feature and may be unstable, use it at your own risk. Feedback highly appreciated!' |
358 | | - : \sprintf( |
359 | | - 'You can enable parallel runner and speed up the analysis! Please see %s for more information.', |
360 | | - $stdErr->isDecorated() |
361 | | - ? \sprintf('<href=%s;bg=yellow;fg=red;bold>usage docs</>', OutputFormatter::escape($usageDocs)) |
362 | | - : $usageDocs, |
363 | | - ), |
364 | | - )); |
365 | | - } |
366 | | - |
367 | 348 | if ($resolver->getUsingCache()) { |
368 | 349 | $cacheFile = $resolver->getCacheFile(); |
369 | 350 |
|
|
0 commit comments