mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 06:18:26 +02:00
Updated rector config
This commit is contained in:
parent
dc480f755c
commit
f215bd11cd
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,7 @@ use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
|
|||
use Rector\Config\RectorConfig;
|
||||
use Rector\Doctrine\Set\DoctrineSetList;
|
||||
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
|
||||
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertEmptyNullableObjectToAssertInstanceofRector;
|
||||
use Rector\PHPUnit\Set\PHPUnitSetList;
|
||||
use Rector\Set\ValueObject\LevelSetList;
|
||||
use Rector\Set\ValueObject\SetList;
|
||||
|
@ -32,6 +33,8 @@ return RectorConfig::configure()
|
|||
|
||||
->withSets([
|
||||
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
|
||||
PHPUnitSetList::PHPUNIT_90,
|
||||
PHPUnitSetList::PHPUNIT_110,
|
||||
])
|
||||
|
||||
->withRules([
|
||||
|
@ -39,6 +42,10 @@ return RectorConfig::configure()
|
|||
])
|
||||
|
||||
->withSkip([
|
||||
//Leave our AssertNull tests alone
|
||||
AssertEmptyNullableObjectToAssertInstanceofRector::class,
|
||||
|
||||
|
||||
CountArrayToEmptyArrayComparisonRector::class,
|
||||
//Leave our !== null checks alone
|
||||
FlipTypeControlToUseExclusiveTypeRector::class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue