Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions build/target-repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,11 @@ We currently provide formatters for:

- `console`: Human-oriented printing à la PHP CS Fixer.
- `json`: A custom JSON blob for arbitrary tooling.
- `checkstyle`: Useful for Github Action Reports.

You can use the output format option as below

```bash
vendor/bin/ecs --output-format=checkstyle
vendor/bin/ecs --output-format=json
```

<br>
Expand Down
3 changes: 0 additions & 3 deletions build/target-repository/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@
"symplify/coding-standard": "<13.0",
"phpcsstandards/php_codesniffer": "<4.0.4",
"friendsofphp/php-cs-fixer": "<3.95.20"
},
"suggest": {
"ext-dom": "Needed to support checkstyle output format in class CheckstyleOutputFormatter"
}
}
93 changes: 0 additions & 93 deletions src/Console/Output/CheckstyleOutputFormatter.php

This file was deleted.

1 change: 1 addition & 0 deletions src/Console/Output/OutputFormatterCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ final class OutputFormatterCollector
private const array REMOVED_FORMATS = [
'junit' => ConsoleOutputFormatter::NAME,
'gitlab' => ConsoleOutputFormatter::NAME,
'checkstyle' => ConsoleOutputFormatter::NAME,
];

/**
Expand Down
61 changes: 0 additions & 61 deletions tests/Console/Output/CheckstyleOutputFormatterTest.php

This file was deleted.

9 changes: 0 additions & 9 deletions tests/Console/Output/Fixture/expected_checkstyle_output.xml

This file was deleted.

13 changes: 8 additions & 5 deletions tests/Console/Output/OutputFormatterCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Symplify\EasyCodingStandard\Tests\Console\Output;

use Symplify\EasyCodingStandard\Console\Output\CheckstyleOutputFormatter;
use Symplify\EasyCodingStandard\Console\Output\ConsoleOutputFormatter;
use Symplify\EasyCodingStandard\Console\Output\JsonOutputFormatter;
use Symplify\EasyCodingStandard\Console\Output\OutputFormatterCollector;
Expand All @@ -31,10 +30,6 @@ public function test(): void
JsonOutputFormatter::class,
$this->outputFormatterCollector->getByName(JsonOutputFormatter::getName())
);
$this->assertInstanceOf(
CheckstyleOutputFormatter::class,
$this->outputFormatterCollector->getByName(CheckstyleOutputFormatter::getName())
);
}

public function testRemovedJUnitFormatFallsBackToConsole(): void
Expand All @@ -52,4 +47,12 @@ public function testRemovedGitlabFormatFallsBackToConsole(): void
$this->outputFormatterCollector->getByName('gitlab')
);
}

public function testRemovedCheckstyleFormatFallsBackToConsole(): void
{
$this->assertInstanceOf(
ConsoleOutputFormatter::class,
$this->outputFormatterCollector->getByName('checkstyle')
);
}
}
Loading