Skip to content

Commit

Permalink
feat: add test for shellcheck except inside command section
Browse files Browse the repository at this point in the history
  • Loading branch information
thatRichman committed Dec 20, 2024
1 parent 24d1114 commit cb4b0fa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions wdl-lint/tests/lints/shellcheck-ok/source.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,25 @@ task test3 {

runtime {}
}

task test4 {
meta {}

parameter_meta {}

input {
Int placeholder
}

command {
set -eo pipefail

unquoted_var="foo bar baz"
# shellcheck disable=SC2086
echo $unquoted_var
}

output {}

runtime {}
}

0 comments on commit cb4b0fa

Please sign in to comment.