shellcheck: also disable SC2054

This commit is contained in:
Jörg Thalheim committed 2024-09-20 14:55:36 +02:00
1 parent bc7fd7238a
commit da8bfaf1d5
1 file changed
+3 -1
+3 -1
View File
@@ -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"
'');
};