From 732c04420ba5151abcd6555300c188a5a995ae64 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Wed, 15 Apr 2026 02:30:04 +0200 Subject: [PATCH] lint: disable warnings about desired behavior We deliberately create subshells for the export in these cases, so we don't want warnings about it. Part of #12636 --- build_tools/check.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_tools/check.sh b/build_tools/check.sh index b3948c509..61decae38 100755 --- a/build_tools/check.sh +++ b/build_tools/check.sh @@ -89,6 +89,7 @@ fi gettext_template_dir=$(mktemp -d) ( + # shellcheck disable=2030 export FISH_GETTEXT_EXTRACTION_DIR="$gettext_template_dir" cargo build --workspace --all-targets --features=gettext-extract ) @@ -125,6 +126,7 @@ fi # Using "()" not "{}" because we do want a subshell (for the export) system_tests() ( [ -n "$*" ] && export "$@" + # shellcheck disable=2031 export FISH_GETTEXT_EXTRACTION_DIR="$gettext_template_dir" "$workspace_root/tests/test_driver.py" "$build_dir" )