From 5c0266e818126e005d63add3045063637c848def Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Tue, 19 Nov 2024 00:04:06 +0100 Subject: [PATCH] Add fix-cs recipe --- .github/CONTRIBUTING.md | 5 +---- GNUmakefile | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 000c72df0..b7c67744b 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -52,7 +52,4 @@ 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: - -- when testing using Docker: `docker-compose run --rm php bin/php-cs-fixer fix` -- otherwise: `php bin/php-cs-fixer fix` +To run the PHP formatter run `make fix-cs`. diff --git a/GNUmakefile b/GNUmakefile index 6f7319138..157c6e75c 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -46,6 +46,9 @@ build: ## Run webpack test: ## Launch wallabag testsuite @$(PHP_NO_XDEBUG) -dmemory_limit=-1 bin/phpunit -v +fix-cs: ## Run PHP-CS-Fixer + @$(PHP_NO_XDEBUG) bin/php-cs-fixer fix + release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`). ifndef VERSION $(error VERSION is not set) @@ -55,6 +58,6 @@ endif deploy: ## Deploy wallabag @bundle exec cap staging deploy -.PHONY: help install update build test release deploy run dev +.PHONY: help install update build test release deploy run dev fix-cs .DEFAULT_GOAL := install