reinfi/ecs-junit-formatter

There is no license information available for the latest version (v3.0.0) of this package.

JUnit-Formatter for easy-coding-standard

v3.0.0 2024-06-06 05:04 UTC

This package is auto-updated.

Last update: 2024-11-06 05:45:28 UTC


README

  1. Installation
  2. Usage

Installation

  1. Install with composer: composer require reinfi/ecs-junit-formatter.
  2. Register formatter in your ecs.php
use Reinfi\EasyCodingStandard\JUnitOutputFormatter;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\Contract\Console\Output\OutputFormatterInterface;

if (isset($ecsConfig) && $ecsConfig instanceof ECSConfig) {
    $ecsConfig->singleton(JUnitOutputFormatter::class);
}

return ECSConfig::configure()
    [...]
    ->withPaths([__DIR__ . '/src']);

Usage

Use console argument to specify output.

php vendor/bin/ecs --output-format=junit