Skip to content

Commit

Permalink
add paths to rector init
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 2, 2021
1 parent 49033ce commit 2ea6e90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/rector.php.dist
Expand Up @@ -10,9 +10,12 @@ use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigura
return static function (ContainerConfigurator $containerConfigurator): void {
// get parameters
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [
__DIR__ . '/src'
]);

// Define what rule sets will be applied
$containerConfigurator->import(SetList::DEAD_CODE);
$containerConfigurator->import(SetList::CODE_QUALITY);

// get services (needed for register a single rule)
// $services = $containerConfigurator->services();
Expand Down

0 comments on commit 2ea6e90

Please sign in to comment.