Skip to content

Commit ed21baf

Browse files
committed
Install rector, create config file
1 parent da184cc commit ed21baf

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"guzzlehttp/psr7": "^2",
3636
"php-mock/php-mock-phpunit": "^2.13",
3737
"phpstan/phpstan": "^2.1",
38-
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.2 || ^12.0.9"
38+
"phpunit/phpunit": "^9.5 || ^10.5 || ^11.2 || ^12.0.9",
39+
"rector/rector": "^2.0"
3940
},
4041
"autoload": {
4142
"psr-4": {

rector.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withPaths([
9+
__DIR__ . '/src',
10+
__DIR__ . '/tests',
11+
])
12+
->withPhpSets()
13+
->withTypeCoverageLevel(0)
14+
->withDeadCodeLevel(0)
15+
->withCodeQualityLevel(0);

0 commit comments

Comments
 (0)