From 58a9628a57f2cb55bd6af2bc0f5acd0c4820d515 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Fri, 9 Dec 2022 18:32:43 +0100 Subject: [PATCH] add phpstan config file, ignore broken files because of optional lib and add it to action --- .github/workflows/test.yml | 1 + phpstan.neon | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 phpstan.neon diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 835c821..824cebb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,4 +25,5 @@ jobs: - uses: ramsey/composer-install@v1 - run: composer lint-ci + - run: composer phpstan - run: composer test diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..de87fe2 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,12 @@ +parameters: + level: 3 + + excludePaths: + - %currentWorkingDirectory%/lib/Providers/Qr/BaconQrCodeProvider.php + - %currentWorkingDirectory%/lib/Providers/Qr/EndroidQrCodeProvider.php + - %currentWorkingDirectory%/lib/Providers/Qr/EndroidQrCodeWithLogoProvider.php + + paths: + - %currentWorkingDirectory%/lib + - %currentWorkingDirectory%/tests +