Skip to content

Commit d55769c

Browse files
committed
chore(rector): default configuration
Mind you, this config assumes that you are already somewhat on the bleeding edge. If you're using a lot of older PHP syntax this configuration might result in a massive change that will probably be hard to review.
1 parent d742f2e commit d55769c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

rector.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
->withPreparedSets(
13+
deadCode: true,
14+
codeQuality: true,
15+
codingStyle: true,
16+
naming: true,
17+
privatization: true,
18+
typeDeclarations: true,
19+
rectorPreset: true,
20+
);

0 commit comments

Comments
 (0)