From 0f8449955607da1aa636f8d3e56cde808a48bd25 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sat, 20 Aug 2022 01:37:27 +0000 Subject: [PATCH] lint: Disable some ShellChecks on Gitian descriptors These trigger because our Gitian descriptors are out-of-sync with upstream. --- test/lint/lint-shell.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lint/lint-shell.sh b/test/lint/lint-shell.sh index 5af031045..5f5493432 100755 --- a/test/lint/lint-shell.sh +++ b/test/lint/lint-shell.sh @@ -26,9 +26,12 @@ disabled=( disabled_gitian=( SC2001 # See if you can use ${variable//search/replace} instead. SC2006 # Use $(...) notation instead of legacy backticked `...`. + SC2035 # Use ./*glob* or -- *glob* so names with dashes won't become options. + SC2043 # This loop will only ever run once for a constant value. Did you perhaps mean to loop over dir/*, $var or $(cmd)? SC2094 # Make sure not to read and write the same file in the same pipeline. SC2129 # Consider using { cmd1; cmd2; } >> file instead of individual redirects. SC2155 # Declare and assign separately to avoid masking return values. + SC2164 # Use 'cd ... || exit' or 'cd ... || return' in case cd fails. SC2230 # which is non-standard. Use builtin 'command -v' instead. )