From e2e6d70ea884214e15cc59a6669e06ef66bd8e79 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Sun, 2 Sep 2018 21:07:31 +0200 Subject: [PATCH] Improve PHPStan Configuration --- .gitignore | 1 - composer.json | 2 +- phpstan.neon.dist | 7 +++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3f9bc5e..99361ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .phpcs-cache -composer.phar composer.lock phpcs.xml phpstan.neon diff --git a/composer.json b/composer.json index 152bcdf..f33c497 100644 --- a/composer.json +++ b/composer.json @@ -43,6 +43,6 @@ }, "scripts": { "lint" : "phpcs", - "static-analysis": "phpstan analyse --ansi -l 1 -c phpstan.neon.dist src tests" + "static-analysis": "phpstan analyse --ansi" } } diff --git a/phpstan.neon.dist b/phpstan.neon.dist index b2b86dc..b458ec3 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,3 +1,10 @@ +parameters: + level: 1 + + paths: + - %currentWorkingDirectory%/src + - %currentWorkingDirectory%/tests + includes: - vendor/phpstan/phpstan-phpunit/extension.neon - vendor/phpstan/phpstan-phpunit/rules.neon