Skip to content

Commit 75b3355

Browse files
committed
feat: add test for shellcheck except inside command section
1 parent 24d1114 commit 75b3355

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

wdl-lint/tests/lints/shellcheck-ok/source.wdl

+25
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,28 @@ task test3 {
7777

7878
runtime {}
7979
}
80+
81+
task test4 {
82+
meta {}
83+
84+
parameter_meta {}
85+
86+
input {
87+
Int placeholder
88+
}
89+
90+
command {
91+
#@ except: ShellCheck
92+
set -eo pipefail
93+
94+
echo "$placeholder"
95+
96+
if [[ $I_really_want_this_unquoted ]]; then
97+
echo "all is not well"
98+
fi
99+
}
100+
101+
output {}
102+
103+
runtime {}
104+
}

0 commit comments

Comments
 (0)