31 lines
688 B
PHP
31 lines
688 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2010 - 2024 the Friendica project
|
|
*
|
|
* SPDX-License-Identifier: CC0-1.0
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
return \Rector\Config\RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/config',
|
|
__DIR__ . '/mod',
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/static',
|
|
__DIR__ . '/tests',
|
|
__DIR__ . '/view',
|
|
])
|
|
->withIndent("\t", 4)
|
|
->withPhpVersion(70400)
|
|
// ->withTypeCoverageLevel(0)
|
|
// ->withDeadCodeLevel(0)
|
|
// ->withCodeQualityLevel(0)
|
|
->withSets([
|
|
\Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_74,
|
|
])
|
|
->withSkip([
|
|
\Rector\Php56\Rector\FuncCall\PowToExpRector::class,
|
|
\Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector::class,
|
|
])
|
|
;
|