forked from esazykin/laravel-clickhouse
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathrector.php
33 lines (28 loc) · 1.02 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\SetList;
use RectorLaravel\Set\LaravelLevelSetList;
return static function (RectorConfig $config): void {
$config->parallel();
$config->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
$config->skip([
IssetOnPropertyObjectToPropertyExistsRector::class,
]);
// Define what rule sets will be applied
$config->import(PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES);
$config->import(LaravelLevelSetList::UP_TO_LARAVEL_110);
$config->import(PHPUnitSetList::PHPUNIT_100);
$config->import(SetList::STRICT_BOOLEANS);
$config->import(SetList::PRIVATIZATION);
$config->import(SetList::EARLY_RETURN);
$config->import(SetList::INSTANCEOF);
$config->import(SetList::CODE_QUALITY);
$config->import(SetList::DEAD_CODE);
$config->import(SetList::PHP_82);
};