From 618b22ab217b773d18abfce8bfe4dd6960738371 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 20 Apr 2020 20:05:14 +0200 Subject: tests: add phpstan static analysis tool (level5) --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 816f019..43ce4c1 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,7 @@ dist/w_cms_%.zip: all "package*" \ phpcs.xml \ phpunit.xml \ + phpstan.neon \ webpack.config.js # Generate the js bundles (and sourcemaps). @@ -158,13 +159,18 @@ buildclean: # Run all checks. .PHONY: check -check: vendor lint test +check: vendor lint analyse test # Lint php code with phpcs. .PHONY: lint lint: $(phpcs_dir) phpcs --report-full --report-checkstyle=$(phpcs_dir)/checkstyle.xml +# Analyse php code with phpstan. +.PHONY: analyse +analyse: + phpstan analyse + # Test php code with phpunit. .PHONY: test test: $(phpunit_dir) -- cgit v1.2.3