reinfi / ecs-junit-formatter
JUnit-Formatter for easy-coding-standard
Installs: 12 049
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^8.1 | 8.2
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.3
- symplify/easy-coding-standard: > 12.2.0
Suggests
- symplify/easy-coding-standard: To use this formatter
README
Installation
- Install with composer:
composer require reinfi/ecs-junit-formatter
. - 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