Skip to content

Commit 0835a6c

Browse files
committed
Add coding style checks
1 parent 6feb90d commit 0835a6c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rector.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
require_once __DIR__ . '/util/rector/ReplaceKnownDefinedWithBooleanRector.php';
66
require_once __DIR__ . '/util/rector/ReplaceNegatedBooleanRector.php';
77

8+
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
9+
use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector;
10+
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
11+
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
812
use Rector\Config\RectorConfig;
913
use Rector\Constants\Rector\FuncCall\ReplaceKnownDefinedWithBooleanRector;
1014
use Rector\DeadCode\Rector\For_\RemoveDeadContinueRector;
@@ -42,13 +46,18 @@
4246
->withSets(
4347
[
4448
SetList::CODE_QUALITY,
49+
SetList::CODING_STYLE,
4550
SetList::DEAD_CODE,
4651
SetList::EARLY_RETURN,
4752
SetList::INSTANCEOF,
4853
]
4954
)
5055
->withSkip(
5156
[
57+
CatchExceptionNameMatchingTypeRector::class,
58+
EncapsedStringsToSprintfRector::class,
59+
NewlineAfterStatementRector::class,
60+
NewlineBeforeNewAssignSetRector::class,
5261
// Allow explicit loops to consume iterators for side-effects
5362
RemoveDeadContinueRector::class,
5463
TernaryToElvisRector::class,

0 commit comments

Comments
 (0)