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
composer.phar
composer.lock
phpcs.xml
phpstan.neon

View File

@ -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"
}
}

View File

@ -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