Skip to content

Commit

Permalink
using option skip for skip system/Autoloader/Autoloader.php for Under…
Browse files Browse the repository at this point in the history
…scoreToCamelCaseVariableNameRector with reason comment
  • Loading branch information
samsonasik committed Sep 29, 2020
1 parent b594d98 commit c95d52e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// is there a file you need to skip?
$parameters->set(Option::EXCLUDE_PATHS, [
__DIR__ . '/app/Views',
__DIR__ . '/system/Autoloader/Autoloader.php',
__DIR__ . '/system/Debug/Toolbar/Views/toolbar.tpl.php',
__DIR__ . '/system/ThirdParty',
]);
Expand All @@ -26,4 +25,10 @@

$services = $containerConfigurator->services();
$services->set(UnderscoreToCamelCaseVariableNameRector::class);

$parameters->set(Option::SKIP, [
// skipped for UnderscoreToCamelCaseVariableNameRector rule
// as the underscored variable removed in 4.1 branch
UnderscoreToCamelCaseVariableNameRector::class => [__DIR__ . '/system/Autoloader/Autoloader.php'],
]);
};

0 comments on commit c95d52e

Please sign in to comment.