mirror of
https://github.com/jbcr/Win32ServiceBundle.git
synced 2026-03-24 17:02:19 +01:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
use Rector\Set\ValueObject\SetList;
|
|
use Rector\Symfony\Set\SymfonySetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->phpVersion(phpVersion: PhpVersion::PHP_80);
|
|
$rectorConfig->importNames();
|
|
$rectorConfig->importShortClasses();
|
|
$rectorConfig->parallel();
|
|
// $rectorConfig->symfonyContainerPhp(filePath: __DIR__ . 'var/cache/dev/App_KernelDevDebugContainer.php');
|
|
|
|
$rectorConfig->autoloadPaths(autoloadPaths: [
|
|
__DIR__ . '/vendor/autoload.php',
|
|
]);
|
|
|
|
$rectorConfig->paths(paths: [
|
|
__DIR__ . '/lib',
|
|
]);
|
|
|
|
$rectorConfig->skip(criteria: [
|
|
__DIR__ . '/vendor',
|
|
]);
|
|
|
|
$rectorConfig->sets(sets: [
|
|
// SetList::CODE_QUALITY,
|
|
// SetList::CODING_STYLE,
|
|
// SetList::DEAD_CODE,
|
|
// SetList::EARLY_RETURN,
|
|
SetList::PHP_80,
|
|
// SetList::PSR_4,
|
|
// SetList::PRIVATIZATION,
|
|
// SetList::TYPE_DECLARATION,
|
|
// SetList::TYPE_DECLARATION_STRICT,
|
|
// SymfonySetList::SYMFONY_STRICT,
|
|
// SymfonySetList::SYMFONY_44,
|
|
// SymfonySetList::SYMFONY_CODE_QUALITY,
|
|
// SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
|
|
#SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
|
|
]);
|
|
|
|
};
|