Skip to content

Commit 85f9b2b

Browse files
authored
Add Infection config builder (#346)
1 parent 063845e commit 85f9b2b

File tree

8 files changed

+2805
-228
lines changed

8 files changed

+2805
-228
lines changed

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ return PhpCsFixer\Config::create()
3535
->in(__DIR__ . '/tests')
3636
->notName('php-cs-fixer.config.*.php')
3737
->append([
38+
__DIR__ . '/dev-tools/build-infection-config',
3839
__DIR__ . '/dev-tools/readme',
3940
__FILE__,
4041
])

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[![CI Status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions)
1010
[![Code coverage](https://img.shields.io/coveralls/github/kubawerlos/php-cs-fixer-custom-fixers/master.svg)](https://coveralls.io/github/kubawerlos/php-cs-fixer-custom-fixers?branch=master)
11-
![Tests](https://img.shields.io/badge/tests-2291-brightgreen.svg)
11+
![Tests](https://img.shields.io/badge/tests-2292-brightgreen.svg)
1212
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/kubawerlos/php-cs-fixer-custom-fixers/master)](https://stryker-mutator.github.io)
1313
[![Psalm type coverage](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers/coverage.svg)](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers)
1414

build/logs/clover.xml

Lines changed: 2380 additions & 0 deletions
Large diffs are not rendered by default.

dev-tools/build-infection-config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
include __DIR__ . '/../vendor/autoload.php';
5+
include __DIR__ . '/vendor/autoload.php';
6+
7+
$configBuilder = new PhpCsFixerCustomFixersDev\InfectionConfigBuilder();
8+
$config = $configBuilder->build();
9+
10+
\file_put_contents(__DIR__ . '/infection.json', \json_encode($config, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) . "\n");

0 commit comments

Comments
 (0)