From da8bfaf1d5b8b4ca1d1a46aea116ebabf35d8d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 20 Sep 2024 14:55:36 +0200 Subject: [PATCH] shellcheck: also disable SC2054 --- lib/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index ccf169a..0506983 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -261,7 +261,9 @@ let interpreter = if noDeps then "/usr/bin/env bash" else "${pkgs.bash}/bin/bash"; check = lib.optionalString (checked && !pkgs.hostPlatform.isRiscV64 && !pkgs.hostPlatform.isx86_32) (pkgs.writeScript "check" '' set -efu - ${pkgs.shellcheck}/bin/shellcheck -e SC2034 "$1" + # SC2054: our toShellVars function doesn't quote list elements with commas + # SC2034: We don't use all variables exported by hooks. + ${pkgs.shellcheck}/bin/shellcheck -e SC2034,SC2054 "$1" ''); };