Skip to content

Commit bdb399b

Browse files
committed
CI: ignore shellcheck's SC2086 error
Ignore the "Double quote to prevent globbing and word splitting" error from shellcheck. Script authors should have knowledge whether the variable can contain spaces or shell glob symbols or not. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
1 parent 9b33962 commit bdb399b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/static-checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
run: |
6262
# Run shellcheck against all files outside .git/ that `file` reports
6363
# as text/x-shellscript
64+
#
65+
# Ignore the double quoting warning, script authors have better
66+
# knowledge of variable contents.
67+
export SHELLCHECK_OPTS="-e SC2086"
6468
find . -path ./.git -prune -o -print0 | \
6569
xargs -0n1 sh -c 'test "$(file --brief --mime-type "$1")" = "text/x-shellscript" && printf "%s\000" "$1"' -- | \
6670
xargs -0t shellcheck

0 commit comments

Comments
 (0)