mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
32 lines
794 B
PHP
32 lines
794 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\ValueObject\PhpVersion;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->phpVersion(PhpVersion::PHP_71);
|
|
$rectorConfig->paths([
|
|
__DIR__ . '/../../../htdocs/',
|
|
__DIR__ . '/../../../scripts/',
|
|
__DIR__ . '/../../../test/phpunit/',
|
|
]);
|
|
$rectorConfig->skip([
|
|
'**/includes/**',
|
|
__DIR__ . '/../../../htdocs/install/doctemplates/*'
|
|
]);
|
|
$rectorConfig->parallel(240);
|
|
|
|
|
|
// register a single rule
|
|
$rectorConfig->rule(Dolibarr\Rector\Renaming\GlobalToFunction::class);
|
|
$rectorConfig->rule(Dolibarr\Rector\Renaming\UserRightsToFunction::class);
|
|
|
|
// define sets of rules
|
|
// $rectorConfig->sets([
|
|
// LevelSetList::UP_TO_PHP_71
|
|
// ]);
|
|
};
|