Add phpstan recipe

This commit is contained in:
Yassine Guedidi 2024-11-19 00:07:20 +01:00
parent 5c0266e818
commit f2d5895801
2 changed files with 6 additions and 1 deletions

View File

@ -53,3 +53,5 @@ All pull requests need to pass the tests and the code needs match the style guid
To run the tests locally run `make test`.
To run the PHP formatter run `make fix-cs`.
To run the PHPStan static analysis run `make phpstan`.

View File

@ -49,6 +49,9 @@ test: ## Launch wallabag testsuite
fix-cs: ## Run PHP-CS-Fixer
@$(PHP_NO_XDEBUG) bin/php-cs-fixer fix
phpstan: ## Run PHPStan
@$(PHP_NO_XDEBUG) bin/phpstan analyse
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
ifndef VERSION
$(error VERSION is not set)
@ -58,6 +61,6 @@ endif
deploy: ## Deploy wallabag
@bundle exec cap staging deploy
.PHONY: help install update build test release deploy run dev fix-cs
.PHONY: help install update build test release deploy run dev fix-cs phpstan
.DEFAULT_GOAL := install