From 048471ed76efb66c0fc197fd0f318ebe8a9777e6 Mon Sep 17 00:00:00 2001 From: johnkrovitch Date: Wed, 20 Nov 2024 22:14:44 +0100 Subject: [PATCH] chore: add rector --- .github/workflows/ci.yaml | 3 +++ rector.php | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 rector.php diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2767719fd..2fcaf21e0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/rector.php b/rector.php new file mode 100644 index 000000000..41d05308d --- /dev/null +++ b/rector.php @@ -0,0 +1,21 @@ +withPaths([ + __DIR__.'/config', + __DIR__.'/src', + __DIR__.'/tests', + ]) + ->withSkipPath(__DIR__.'/tests/app') + ->withPhpSets(php83: true) + ->withTypeCoverageLevel(0) + + ->withSkip([ + AddOverrideAttributeToOverriddenMethodsRector::class, + ]) +;