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 75b3355
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 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,28 @@ task test3 {

runtime {}
}

task test4 {
meta {}

parameter_meta {}

input {
Int placeholder
}

command {
#@ except: ShellCheck
set -eo pipefail

echo "$placeholder"

if [[ $I_really_want_this_unquoted ]]; then
echo "all is not well"
fi
}

output {}

runtime {}
}

0 comments on commit 75b3355

Please sign in to comment.