Skip to content

Commit

Permalink
Add color on phpcsfixer
Browse files Browse the repository at this point in the history
  • Loading branch information
oallain committed Jul 9, 2022
1 parent 3ec61c1 commit bf054c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Task/PhpCsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bf054c0

Please sign in to comment.