mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-18 22:41:09 +02:00
Add a Rector config
This commit is contained in:
parent
fbac26467b
commit
d354331322
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,4 +15,5 @@ Thumbs.db
|
||||
/vendor/**/.git
|
||||
/.phpunit.cache
|
||||
/.phpstan-tmp
|
||||
/.rector-tmp
|
||||
/.tools/
|
||||
|
@ -25,6 +25,7 @@ parameters:
|
||||
- plugins/**/tests/*
|
||||
- plugins/*/vendor/intervention/*
|
||||
- plugins/*/vendor/psr/log/*
|
||||
- rector.php
|
||||
- vendor/**/*
|
||||
paths:
|
||||
- .
|
||||
|
21
rector.php
Normal file
21
rector.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
return RectorConfig::configure()
|
||||
// TODO: use the 'composer.json' approach instead
|
||||
->withPhpSets(php82: true)
|
||||
->withCache(__DIR__ . '/.rector-tmp', FileCacheStorage::class)
|
||||
->withPaths([__DIR__])
|
||||
->withSkip([
|
||||
__DIR__ . '/lib',
|
||||
__DIR__ . '/plugins.local',
|
||||
__DIR__ . '/vendor',
|
||||
// not a fan
|
||||
Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector::class,
|
||||
// noisy at the moment (needs more review)
|
||||
Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector::class,
|
||||
]);
|
Loading…
x
Reference in New Issue
Block a user