Skip to content

Commit

Permalink
Remove unused import in rector.php, run static analysis against recto…
Browse files Browse the repository at this point in the history
…r.php (#63)
  • Loading branch information
ben-challis authored Feb 21, 2023
1 parent ff1d7ca commit a064b18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
declare(strict_types=1);

$finder = PhpCsFixer\Finder::create()
->in(['bin', 'src', 'tests'])
->in([__DIR__])
->exclude(['tmp', 'vendor'])
->name('composer-license-checker');

return (new PhpCsFixer\Config())
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ parameters:
- bin/composer-license-checker
- src
- tests
- rector.php
reportUnmatchedIgnoredErrors: true
checkExplicitMixed: true
tmpDir: tmp/phpstan
3 changes: 1 addition & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

declare(strict_types=1);

use Rector\CodeQuality\Rector\ClassMethod\DateTimeToDateTimeInterfaceRector;
use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
Expand All @@ -12,7 +11,7 @@

return static function (RectorConfig $rector): void {
$rector->parallel();
$rector->paths([__DIR__.'/src', __DIR__.'/tests', __DIR__.'/bin']);
$rector->paths([__DIR__.'/src', __DIR__.'/tests', __DIR__.'/bin', __DIR__.'/rector.php']);
$rector->phpVersion(PhpVersion::PHP_81);
$rector->phpstanConfig(__DIR__.'/phpstan-rector.neon');
$rector->cacheDirectory(__DIR__.'/tmp/rector');
Expand Down

0 comments on commit a064b18

Please sign in to comment.