-
-
Save rmcdaniel/05627aa809f31edb9abca6b5d52d4a3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use Rector\Config\RectorConfig; | |
use Rector\Core\ValueObject\PhpVersion; | |
use Rector\Set\ValueObject\LevelSetList; | |
use Rector\Set\ValueObject\SetList; | |
return static function (RectorConfig $rectorConfig): void { | |
$rectorConfig->paths([ | |
__DIR__ . '/app', | |
__DIR__ . '/tests' | |
]); | |
$rectorConfig->parallel(240); | |
$rectorConfig->phpVersion(PhpVersion::PHP_81); | |
$rectorConfig->sets([ | |
LevelSetList::UP_TO_PHP_81, | |
SetList::CODE_QUALITY, | |
SetList::DEAD_CODE, | |
SetList::PRIVATIZATION, | |
SetList::NAMING, | |
SetList::TYPE_DECLARATION, | |
SetList::EARLY_RETURN, | |
SetList::TYPE_DECLARATION_STRICT, | |
SetList::CODING_STYLE, | |
]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment