From 4daa4a546efc992941c381f664781b2677a8c278 Mon Sep 17 00:00:00 2001 From: Diego Orellano Date: Thu, 12 Oct 2023 09:18:17 -0300 Subject: [PATCH] add phpstan --- composer.json | 3 +++ phpstan.neon | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 phpstan.neon diff --git a/composer.json b/composer.json index bf4dce7d..e489349a 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,9 @@ "@phpcs", "@phpcbf" ], + "stan": [ + "vendor/bin/phpstan analyse --memory-limit=-1 --error-format=table > ../../../phpstan-report-iloveimg.txt" + ], "phpcs": [ "phpcs -s --ignore=*/vendor/*,*/lib/*,*/.github/* --report-file=../../../condesniffer-report-iloveimg.txt ./" ], diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 00000000..09254916 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,10 @@ +parameters: + level: 5 + paths: + - ./ + excludePaths: + analyseAndScan: + - vendor + - node_modules + analyse: + - iloveimg-php \ No newline at end of file