Improve PHPStan Configuration

This commit is contained in:
Simon Podlipsky 2018-09-02 21:07:31 +02:00
parent 86503e2e35
commit e2e6d70ea8
No known key found for this signature in database
GPG Key ID: 725C2BD962B42663
3 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,5 +1,4 @@
.phpcs-cache .phpcs-cache
composer.phar
composer.lock composer.lock
phpcs.xml phpcs.xml
phpstan.neon phpstan.neon

View File

@ -43,6 +43,6 @@
}, },
"scripts": { "scripts": {
"lint" : "phpcs", "lint" : "phpcs",
"static-analysis": "phpstan analyse --ansi -l 1 -c phpstan.neon.dist src tests" "static-analysis": "phpstan analyse --ansi"
} }
} }

View File

@ -1,3 +1,10 @@
parameters:
level: 1
paths:
- %currentWorkingDirectory%/src
- %currentWorkingDirectory%/tests
includes: includes:
- vendor/phpstan/phpstan-phpunit/extension.neon - vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon - vendor/phpstan/phpstan-phpunit/rules.neon