mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 02:59:29 +00: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\Config\RectorConfig;
|
||||||
use Rector\Doctrine\Set\DoctrineSetList;
|
use Rector\Doctrine\Set\DoctrineSetList;
|
||||||
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
|
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
|
||||||
|
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertEmptyNullableObjectToAssertInstanceofRector;
|
||||||
use Rector\PHPUnit\Set\PHPUnitSetList;
|
use Rector\PHPUnit\Set\PHPUnitSetList;
|
||||||
use Rector\Set\ValueObject\LevelSetList;
|
use Rector\Set\ValueObject\LevelSetList;
|
||||||
use Rector\Set\ValueObject\SetList;
|
use Rector\Set\ValueObject\SetList;
|
||||||
|
|
@ -32,6 +33,8 @@ return RectorConfig::configure()
|
||||||
|
|
||||||
->withSets([
|
->withSets([
|
||||||
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
|
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
|
||||||
|
PHPUnitSetList::PHPUNIT_90,
|
||||||
|
PHPUnitSetList::PHPUNIT_110,
|
||||||
])
|
])
|
||||||
|
|
||||||
->withRules([
|
->withRules([
|
||||||
|
|
@ -39,6 +42,10 @@ return RectorConfig::configure()
|
||||||
])
|
])
|
||||||
|
|
||||||
->withSkip([
|
->withSkip([
|
||||||
|
//Leave our AssertNull tests alone
|
||||||
|
AssertEmptyNullableObjectToAssertInstanceofRector::class,
|
||||||
|
|
||||||
|
|
||||||
CountArrayToEmptyArrayComparisonRector::class,
|
CountArrayToEmptyArrayComparisonRector::class,
|
||||||
//Leave our !== null checks alone
|
//Leave our !== null checks alone
|
||||||
FlipTypeControlToUseExclusiveTypeRector::class,
|
FlipTypeControlToUseExclusiveTypeRector::class,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue