From bf054c0b0ec948578854737966c9ebb03b84fe65 Mon Sep 17 00:00:00 2001 From: Olivier ALLAIN Date: Sat, 9 Jul 2022 22:23:26 +0200 Subject: [PATCH] Add color on phpcsfixer --- src/Task/PhpCsFixer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Task/PhpCsFixer.php b/src/Task/PhpCsFixer.php index dd9c1c0aa..a223f866b 100644 --- a/src/Task/PhpCsFixer.php +++ b/src/Task/PhpCsFixer.php @@ -71,11 +71,12 @@ public function run(ContextInterface $context): TaskResultInterface $this->formatter->resetCounter(); $arguments = $this->processBuilder->createArgumentsForCommand('php-cs-fixer'); - $arguments->add('--format=json'); + $arguments->add('--format=txt'); $arguments->add('--dry-run'); $arguments->addOptionalBooleanArgument('--allow-risky=%s', $config['allow_risky'], 'yes', 'no'); $arguments->addOptionalArgument('--cache-file=%s', $config['cache_file']); $arguments->addOptionalArgument('--config=%s', $config['config']); + $arguments->addOptionalArgument('--ansi', true); if ($rules = $config['rules']) { $arguments->add(sprintf(