Skip to content

Commit

Permalink
chore: add rector
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkrovitch committed Nov 20, 2024
1 parent 2df5d68 commit 048471e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
- name: Run var_dump checker
run: bin/var-dump-check --symfony src tests

- name: Run Rector
run: bin/rector --dry-run

- name: Stop docker compose
run: docker compose down

Expand Down
21 changes: 21 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;

return RectorConfig::configure()
->withPaths([
__DIR__.'/config',
__DIR__.'/src',
__DIR__.'/tests',
])
->withSkipPath(__DIR__.'/tests/app')
->withPhpSets(php83: true)
->withTypeCoverageLevel(0)

->withSkip([
AddOverrideAttributeToOverriddenMethodsRector::class,
])
;

0 comments on commit 048471e

Please sign in to comment.