diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-08-24 22:29:35 +0200 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2020-08-25 20:52:48 +0200 |
commit | 54630030c35067c168847b3eaf109d93058e586a (patch) | |
tree | b9507a58686635fafa8289f502c90c18793ee7c2 /Makefile | |
parent | ea95ccb378a2c22f3a8865561b723afe155d2f1b (diff) |
Add phpstan checks
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -113,6 +113,11 @@ clean: phpcs: ./vendor/bin/phpcs --standard=PSR2 lib +# Reports PHP static violations +.PHONY: phpstan +phpstan: + ./vendor/bin/phpstan analyse --level=1 lib + # Same as clean but also removes dependencies installed by composer and # npm .PHONY: distclean @@ -192,4 +197,5 @@ test: # \Test\TestCase is only allowed to access the db if TRAVIS environment variable is set env TRAVIS=1 ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml $(MAKE) phpcs + $(MAKE) phpstan ./bin/tools/generate_authors.php |