-
-
Notifications
You must be signed in to change notification settings - Fork 161
/
rector.php
70 lines (66 loc) · 2.14 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* This file is part of the bitrix24-php-sdk package.
*
* © Maksim Mesilov <[email protected]>
*
* For the full copyright and license information, please view the MIT-LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\DowngradeLevelSetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src/Core/',
__DIR__ . '/src/Application/',
__DIR__ . '/src/Services/Telephony',
__DIR__ . '/tests/Integration/Services/Telephony',
__DIR__ . '/src/Services/Catalog',
__DIR__ . '/tests/Integration/Services/Catalog',
__DIR__ . '/src/Services/User',
__DIR__ . '/tests/Integration/Services/User',
__DIR__ . '/src/Services/UserConsent',
__DIR__ . '/tests/Integration/Services/UserConsent',
__DIR__ . '/src/Services/IM',
__DIR__ . '/tests/Integration/Services/IM',
__DIR__ . '/src/Services/IMOpenLines',
__DIR__ . '/tests/Integration/Services/IMOpenLines',
__DIR__ . '/src/Services/Main',
__DIR__ . '/tests/Integration/Services/Main',
__DIR__ . '/src/Services/Placement',
__DIR__ . '/tests/Integration/Services/Placement',
__DIR__ . '/tests/Unit/',
])
->withCache(cacheDirectory: __DIR__ . '.cache/rector')
->withSets(
[
DowngradeLevelSetList::DOWN_TO_PHP_82,
PHPUnitSetList::PHPUNIT_100
]
)
->withImportNames(
importNames: false,
importDocBlockNames: false,
importShortClasses: false,
removeUnusedImports: false,
)
->withPhpSets(
php82: true // 8.2
)
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
naming: true,
instanceOf: true,
earlyReturn: true,
strictBooleans: true
)
->withSkip([
RenamePropertyToMatchTypeRector::class
]);