From 76755f10326cb3004e9380e981bb57d2b547de29 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 14 Jan 2026 17:25:58 -0800 Subject: [PATCH] client: dev-tools: lib_linter: php-cs-fixer: add `init` php-cs-fixer's 3.92 series requires `init` before `fix`ing or `check`ing --- client/src/docker/lib/internal/dev-tools/lib_linter.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/docker/lib/internal/dev-tools/lib_linter.bash b/client/src/docker/lib/internal/dev-tools/lib_linter.bash index a78435e..791cccb 100644 --- a/client/src/docker/lib/internal/dev-tools/lib_linter.bash +++ b/client/src/docker/lib/internal/dev-tools/lib_linter.bash @@ -2,7 +2,7 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC) +# Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -212,7 +212,8 @@ function lib_linter::__lint_php() if [ -z "${_path[*]}" ]; then # Do all lib_docker::__docker_compose exec -it docker-finance /bin/bash -i -c \ - "$_php_cs_fixer $DOCKER_FINANCE_CLIENT_REPO && $_php_cs_fixer $DOCKER_FINANCE_CLIENT_PLUGINS \ + "php-cs-fixer -n init \ + && $_php_cs_fixer $DOCKER_FINANCE_CLIENT_REPO && $_php_cs_fixer $DOCKER_FINANCE_CLIENT_PLUGINS \ && $_phpstan $DOCKER_FINANCE_CLIENT_REPO $DOCKER_FINANCE_CLIENT_PLUGINS" else # Do only given file(s)