mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
- Added "rector/rector" package to composer.json - Created rector.php configuration file with rules for code quality improvements
23 lines
721 B
PHP
23 lines
721 B
PHP
<?php
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
use Rector\Set\ValueObject\SetList;
|
|
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
// register single rule
|
|
$rectorConfig->rule(TypedPropertyFromStrictConstructorRector::class);
|
|
|
|
// here we can define, what sets of rules will be applied
|
|
// tip: use "SetList" class to autocomplete sets with your IDE
|
|
$rectorConfig->sets([
|
|
SetList::CODE_QUALITY,
|
|
SetList::CODING_STYLE,
|
|
SetList::DEAD_CODE,
|
|
SetList::EARLY_RETURN,
|
|
SetList::STRICT_BOOLEANS,
|
|
LevelSetList::UP_TO_PHP_82
|
|
]);
|
|
};
|