Skip to content

Commit

Permalink
Add outeredgeRectorSkipDefaults function
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell authored Oct 23, 2023
1 parent 46d6ad8 commit 3c7ac31
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,22 @@

function applyRectorDefaults(RectorConfig $rectorConfig) {
$rectorConfig->phpstanConfig(__DIR__ . '/../../../phpstan.neon');

$rectorConfig->fileExtensions([
'php',
'phtml'
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_81,
SetList::DEAD_CODE,
SetList::CODE_QUALITY,
SetList::CODING_STYLE
]);
};

$rectorConfig->skip([
function outeredgeRectorSkipDefaults() {
return [
__DIR__ . '/vendor',

NewlineAfterStatementRector::class => [
Expand All @@ -25,17 +39,5 @@ function applyRectorDefaults(RectorConfig $rectorConfig) {

ExplicitBoolCompareRector::class,
FinalizePublicClassConstantRector::class
]);

$rectorConfig->fileExtensions([
'php',
'phtml'
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_81,
SetList::DEAD_CODE,
SetList::CODE_QUALITY,
SetList::CODING_STYLE
]);
};
];
}

0 comments on commit 3c7ac31

Please sign in to comment.