From e70dbf35e0362ba8cee3c7bc8ce2a36798ed8d86 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Mon, 22 Jan 2024 10:26:19 -0800 Subject: [PATCH] add rationale to all shellcheck script disable points in pandoc-wrapper.sh --- bin/pandoc-wrapper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/pandoc-wrapper.sh b/bin/pandoc-wrapper.sh index bcf4c377d..53a9dc1c9 100755 --- a/bin/pandoc-wrapper.sh +++ b/bin/pandoc-wrapper.sh @@ -318,6 +318,9 @@ if [[ -z $NOOP ]]; then if [[ $V_FLAG -ge 1 ]]; then echo "$0: debug[1]: will execute pandoc as: $PANDOC_TOOL -o $HTML_OUTPUT $PANDOC_ARGS $MARKDOWN_INPUT" 1>&2 fi + # The pandoc args $PANDOC_ARGS does contain things that must be + # globbed and split (SC2086) for the pandoc tool. + # # SC2086 (info): Double quote to prevent globbing and word splitting. # https://www.shellcheck.net/wiki/SC2086 # shellcheck disable=SC2086 @@ -327,6 +330,9 @@ else if [[ $V_FLAG -ge 1 ]]; then echo "$0: debug[3]: will execute pandoc as: $PANDOC_TOOL $PANDOC_ARGS -o /dev/null $MARKDOWN_INPUT" 1>&2 fi + # The pandoc args $PANDOC_ARGS does contain things that must be + # globbed and split (SC2086) for the pandoc tool. + # # SC2086 (info): Double quote to prevent globbing and word splitting. # https://www.shellcheck.net/wiki/SC2086 # shellcheck disable=SC2086