From 1dc5a2498e7ad45fb677b8f0e55a829661014b37 Mon Sep 17 00:00:00 2001 From: Carine Bonnafous Date: Wed, 3 Jul 2024 14:17:10 +0200 Subject: [PATCH] fix: memory errors with phpcs within docker --- Taskfile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index d8909758..1648fffb 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -37,21 +37,21 @@ tasks: deps: - build:php5-6 cmds: - - docker compose run --rm php5-6 php ./src/vendor/bin/phpcs src + - docker compose run --rm php5-6 php ./src/vendor/bin/phpcs --standard=src/phpcs.xml src lint:fix: desc: Run linter with autofix deps: - build:php5-6 cmds: - - docker compose run --rm php5-6 php ./src/vendor/bin/phpcbf src + - docker compose run --rm php5-6 php ./src/vendor/bin/phpcbf --standard=src/phpcs.xml src php-compatibility: desc: Check compatibility code deps: - build:php5-6 cmds: - - docker compose run --rm php5-6 php ./src/vendor/bin/phpcs -p src --standard=PHPCompatibility -s --runtime-set testVersion 5.6-8.1 --ignore=\*/vendor/\* + - docker compose run --rm php5-6 php ./src/vendor/bin/phpcs -d memory_limit=512M -p src --standard=PHPCompatibility -s --runtime-set testVersion 5.6-8.1 --ignore='*/vendor/*,src/build/*' dist: desc: Build zip file