Files
firefly-iii/.ci/rector.php

65 lines
2.6 KiB
PHP
Raw Normal View History

2025-05-04 16:57:38 +02:00
<?php
2025-05-14 02:56:53 +02:00
/*
* rector.php
* Copyright (c) 2025 james@firefly-iii.org.
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
2025-05-04 16:57:38 +02:00
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()
2025-05-04 17:41:26 +02:00
->withPaths([
2025-05-14 02:56:53 +02:00
// __DIR__ . '/../app',
__DIR__ . '/../app/Http',
// __DIR__ . '/../bootstrap',
// __DIR__ . '/../config',
// __DIR__ . '/../public',
// __DIR__ . '/../resources',
// __DIR__ . '/../routes',
// __DIR__ . '/../tests',
2025-05-04 17:41:26 +02:00
])
2025-05-14 02:56:53 +02:00
// uncomment to reach your current PHP version
2025-05-04 17:41:26 +02:00
->withPhpSets()
2025-05-14 02:56:53 +02:00
->withPreparedSets(
codingStyle : false, // leave false
privatization: false, // leave false.
naming : false, // leave false
instanceOf : true,
earlyReturn : false,
strictBooleans : false,
carbon : false,
rectorPreset : false,
phpunitCodeQuality : false,
doctrineCodeQuality: false,
symfonyCodeQuality : false,
symfonyConfigs : false
)
->withComposerBased(
twig: true,
doctrine: true,
phpunit: true,
symfony: true)
2025-05-04 17:41:26 +02:00
->withTypeCoverageLevel(0)
->withDeadCodeLevel(0)
2025-05-14 02:56:53 +02:00
->withCodeQualityLevel(0)
->withImportNames(removeUnusedImports: true);// import statements instead of full classes.