summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-08-24 22:29:35 +0200
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-08-25 20:52:48 +0200
commit54630030c35067c168847b3eaf109d93058e586a (patch)
treeb9507a58686635fafa8289f502c90c18793ee7c2 /Makefile
parentea95ccb378a2c22f3a8865561b723afe155d2f1b (diff)
Add phpstan checks
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c25161d70..2ba124b9e 100644
--- a/Makefile
+++ b/Makefile
@@ -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