From c3d8d70b34293e82d409565f3622d39377fd9c26 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 31 Jul 2020 12:56:32 +0200 Subject: [PATCH] Move phpstan config file for cleaner root. --- .ci/phpstan.neon | 19 +++++++++++++++++++ .github/workflows/laravel.yml | 2 +- phpstan.neon | 19 ------------------- 3 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 .ci/phpstan.neon delete mode 100644 phpstan.neon diff --git a/.ci/phpstan.neon b/.ci/phpstan.neon new file mode 100644 index 0000000000..87bc120a54 --- /dev/null +++ b/.ci/phpstan.neon @@ -0,0 +1,19 @@ +includes: + - ../vendor/nunomaduro/larastan/extension.neon + - ../vendor/ergebnis/phpstan-rules/rules.neon + - ../vendor/phpstan/phpstan-deprecation-rules/rules.neon + - ../vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon + +parameters: + + paths: + - ../app + - ../config + - ../database + - ../resources + - ../routes + - ../tests + - ../bootstrap/app.php + + # The level 8 is the highest level + level: 5 diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 404ed6aaa1..81ed810dfe 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -152,4 +152,4 @@ jobs: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --no-suggest - name: Execute PHPStan - run: vendor/bin/phpstan analyse + run: vendor/bin/phpstan analyse -c .ci/phpstan.neon diff --git a/phpstan.neon b/phpstan.neon deleted file mode 100644 index ab28cd0ecd..0000000000 --- a/phpstan.neon +++ /dev/null @@ -1,19 +0,0 @@ -includes: - - ./vendor/nunomaduro/larastan/extension.neon - - ./vendor/ergebnis/phpstan-rules/rules.neon - - ./vendor/phpstan/phpstan-deprecation-rules/rules.neon - - ./vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon - -parameters: - - paths: - - app - - config - - database - - resources - - routes - - tests - - bootstrap/app.php - - # The level 8 is the highest level - level: 5