lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master a4ee62f 07/18: Suppress certain shellcheck wa


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a4ee62f 07/18: Suppress certain shellcheck warnings
Date: Wed, 29 May 2019 18:49:08 -0400 (EDT)

branch: master
commit a4ee62fa34f1d6d0fdba8be61a31d059b40187c3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Suppress certain shellcheck warnings
    
    Suppressed some particular shellcheck warnings in zsh scripts. The
    plan is to force them to be tested as though they were posix scripts.
---
 gwc/invert.sh        | 3 +++
 nychthemeral_test.sh | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/gwc/invert.sh b/gwc/invert.sh
index b3b81d2..31ae406 100755
--- a/gwc/invert.sh
+++ b/gwc/invert.sh
@@ -1,4 +1,5 @@
 #!/bin/zsh
+# shellcheck disable=SC1036,SC2039
 
 # Obfuscate-deobfuscate MST<->XST files. Cf. 'mst_to_xst.sh'.
 
@@ -38,5 +39,7 @@ Y=$(printf '\%03o' {0..255})
 MST=(*.mst(N))
 XST=(*.xst(N))
 
+# shellcheck disable=SC2128
 for z in $MST; do tr "$X" "$Y" <"$z" >"${z%%.mst}.xst"; done
+# shellcheck disable=SC2128
 for z in $XST; do tr "$X" "$Y" <"$z" >"${z%%.xst}.mst"; done
diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index 2d94dcb..d2046c8 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -163,6 +163,7 @@ else
 fi
 
 printf '\n# unit tests\n\n'
+# shellcheck disable=SC2039
 make "$coefficiency" --output-sync=recurse unit_tests 2>&1 \
   | tee >(grep '\*\*\*') >(grep \?\?\?\?) >(grep '!!!!' --count | xargs printf 
'%d tests succeeded\n') >"$log_dir"/unit_tests
 
@@ -175,6 +176,7 @@ make "$coefficiency" --output-sync=recurse cgi_tests 
cli_tests build_type=safest
   | tee "$log_dir"/cgi_cli_safestdlib | sed -e "$build_clutter" -e 
"$cli_cgi_clutter"
 
 printf '\n# unit tests in libstdc++ debug mode\n\n'
+# shellcheck disable=SC2039
 make "$coefficiency" --output-sync=recurse unit_tests build_type=safestdlib 
2>&1 \
   | tee >(grep '\*\*\*') >(grep \?\?\?\?) >(grep '!!!!' --count | xargs printf 
'%d tests succeeded\n') >"$log_dir"/unit_tests_safestdlib
 
@@ -234,6 +236,7 @@ cmp eraseme.xst eraseme.touchstone
 
 # Clean up stray output. (The zsh '(N)' glob qualifier turns on
 # null_glob for a single expansion.)
+# shellcheck disable=SC2039
 for z in "$throwaway_dir"/*(N); do rm "$z"; done
 
 # The automated GUI test simulates keyboard and mouse actions, so



reply via email to

[Prev in Thread] Current Thread [Next in Thread]