forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector-globals.php
More file actions
47 lines (44 loc) · 1.35 KB
/
rector-globals.php
File metadata and controls
47 lines (44 loc) · 1.35 KB
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
<?php
declare(strict_types=1);
use OpenEMR\Rector\Rules\GlobalsToOEGlobalsBagRector;
use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withBootstrapFiles([
__DIR__ . '/rector-bootstrap.php',
])
->withPaths([
__DIR__ . '/ccr',
__DIR__ . '/contrib',
__DIR__ . '/controllers',
__DIR__ . '/custom',
__DIR__ . '/gacl',
__DIR__ . '/interface',
__DIR__ . '/library',
__DIR__ . '/portal',
__DIR__ . '/sites',
__DIR__ . '/sphere',
__DIR__ . '/sql_patch.php',
__DIR__ . '/sql_upgrade.php',
__DIR__ . '/src',
__DIR__ . '/templates',
__DIR__ . '/version.php',
])
->withParallel(
timeoutSeconds: 120,
maxNumberOfProcess: 12,
jobSize: 12
)
->withPhpVersion(PhpVersion::PHP_82)
->withRules([
GlobalsToOEGlobalsBagRector::class,
])
->withSkip([
__DIR__ . '/interface/globals.php',
__DIR__ . '/library/sql.inc.php',
__DIR__ . '/library/classes/Installer.class.php',
__DIR__ . '/library/ajax/sql_server_status.php',
__DIR__ . '/library/smarty_legacy/smarty/internals/core.assign_smarty_interface.php',
__DIR__ . '/sites/default/config.php',
__DIR__ . '/src/Core/OEGlobalsBag.php',
]);