From d5419029d82d8de2393e1dacb05ed96a5859b2e6 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 23 Jun 2024 16:56:30 +0200 Subject: [PATCH] Add an explicit FIXME / explanation when ynh_replace is used with positionals --- tools/helpers2.1/convert_to_helpers_2.1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/helpers2.1/convert_to_helpers_2.1.py b/tools/helpers2.1/convert_to_helpers_2.1.py index 91afd8e6..64c2ee35 100644 --- a/tools/helpers2.1/convert_to_helpers_2.1.py +++ b/tools/helpers2.1/convert_to_helpers_2.1.py @@ -198,6 +198,7 @@ def cleanup(): (r"--match_string", "--match"), (r"--replace_string", "--replace"), (r"--target_file", "--file"), + (r"(ynh_replace ('|\"))", "# FIXME: ynh_replace used with positional args. Please add the keywords: --match=, --replace=, --file=\n\\1"), # Nginx (r"ynh_add_nginx_config", "ynh_config_add_nginx"), (r"ynh_remove_nginx_config", "ynh_config_remove_nginx"),