mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-23 03:27:02 +09:00
* fix: Fixing Unit tests * fix: Include helper remove the defines * Enable Pest tests for validation * Update tests/Unit/ScriptsHardeningTest.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update tests/Helpers/CactiStubs.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update tests/Unit/SsHstatsTest.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update rector.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update tests/Unit/HtmlEscapeTest.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: Remove comments that are no longer required * fix: Move xdebug to the correct location * fix: Be consistent with includes --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
26 lines
527 B
PHP
26 lines
527 B
PHP
<?php
|
|
|
|
declare(strict_types = 1);
|
|
|
|
include(__DIR__ . '/include/vendor/autoload.php');
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
|
|
|
|
return RectorConfig::configure()
|
|
->withRootFiles()
|
|
->withPaths([
|
|
__DIR__ . '/include',
|
|
__DIR__ . '/lib',
|
|
__DIR__ . '/scripts',
|
|
])
|
|
->withSkip([
|
|
__DIR__ . '/include/vendor',
|
|
__DIR__ . '/myadmin*',
|
|
LongArrayToShortArrayRector::class
|
|
])
|
|
->withPhpSets()
|
|
->withTypeCoverageLevel(0)
|
|
->withDeadCodeLevel(0)
|
|
->withCodeQualityLevel(0);
|