friendica/.rector.php

31 lines
688 B
PHP
Raw Normal View History

2025-06-18 06:28:54 +00:00
<?php
2025-06-24 13:13:01 +00:00
/**
* SPDX-FileCopyrightText: 2010 - 2024 the Friendica project
*
* SPDX-License-Identifier: CC0-1.0
*/
2025-06-18 06:28:54 +00:00
declare(strict_types=1);
return \Rector\Config\RectorConfig::configure()
2025-06-18 06:32:23 +00:00
->withPaths([
__DIR__ . '/config',
__DIR__ . '/mod',
__DIR__ . '/src',
__DIR__ . '/static',
__DIR__ . '/tests',
__DIR__ . '/view',
])
2026-02-19 21:05:46 +00:00
->withIndent("\t", 4)
->withPhpVersion(70400)
2025-06-18 06:32:23 +00:00
// ->withTypeCoverageLevel(0)
// ->withDeadCodeLevel(0)
// ->withCodeQualityLevel(0)
->withSets([
2026-03-04 21:52:09 +00:00
\Rector\Set\ValueObject\LevelSetList::UP_TO_PHP_74,
2025-06-18 06:32:23 +00:00
])
2026-03-04 21:23:50 +00:00
->withSkip([
\Rector\Php56\Rector\FuncCall\PowToExpRector::class,
2026-03-04 21:52:09 +00:00
\Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector::class,
2026-03-04 21:23:50 +00:00
])
2025-06-18 06:28:54 +00:00
;