diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-20 20:05:14 +0200 |
---|---|---|
committer | Vincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com> | 2020-04-21 14:56:53 +0200 |
commit | 618b22ab217b773d18abfce8bfe4dd6960738371 (patch) | |
tree | 453f21a517554c03ea24e5d7d7abd77a715285e4 /Makefile | |
parent | 4c2464b4440195b55e5d27b0d2bbb06758c05634 (diff) | |
download | wcms-618b22ab217b773d18abfce8bfe4dd6960738371.tar.gz wcms-618b22ab217b773d18abfce8bfe4dd6960738371.zip |
tests: add phpstan static analysis tool (level5)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |