<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;

return RectorConfig::configure()
    ->withPaths(
        [
            __DIR__ . '/../bin',
            __DIR__ . '/../config',
            __DIR__ . '/../src',
            __DIR__ . '/../tests',
        ]
    )
    ->withSets([
        // Rector sets

        LevelSetList::UP_TO_PHP_72,

        // SetList::CODE_QUALITY,
        // SetList::CODING_STYLE,
        // SetList::DEAD_CODE,
        // SetList::EARLY_RETURN,
        // SetList::INSTANCEOF,
        // SetList::NAMING,
        // SetList::PRIVATIZATION,
        SetList::STRICT_BOOLEANS,
        SetList::TYPE_DECLARATION,

        // PHPUnit sets

        PHPUnitSetList::PHPUNIT_80,
        // PHPUnitSetList::PHPUNIT_CODE_QUALITY,
    ])
    ->withImportNames(true, true, false);
