From f2d58958016758e9466cea61f6e28b08033483df Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Tue, 19 Nov 2024 00:07:20 +0100 Subject: [PATCH] Add phpstan recipe --- .github/CONTRIBUTING.md | 2 ++ GNUmakefile | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index b7c67744b..c351f059e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -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`. diff --git a/GNUmakefile b/GNUmakefile index 157c6e75c..2037be837 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -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