summaryrefslogtreecommitdiff
path: root/test/command_callback/test_shellcheck_command_callback.vader
diff options
context:
space:
mode:
authorTim Byrne <sultan@locehilios.com>2017-09-22 16:37:12 -0500
committerTim Byrne <sultan@locehilios.com>2017-09-22 17:04:00 -0500
commit3910b025b2b146c1a509394170c6c149828f8bc7 (patch)
treecc2e5e97099cd34a21cc21111932656aab44f078 /test/command_callback/test_shellcheck_command_callback.vader
parent70fdeb7c228b512f042d8ffe11e9c5e1579bcb5f (diff)
downloadale-3910b025b2b146c1a509394170c6c149828f8bc7.zip
Move dialect setting before user options (shellcheck)
Diffstat (limited to 'test/command_callback/test_shellcheck_command_callback.vader')
-rw-r--r--test/command_callback/test_shellcheck_command_callback.vader9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/command_callback/test_shellcheck_command_callback.vader b/test/command_callback/test_shellcheck_command_callback.vader
index 0d8fef66..8e229056 100644
--- a/test/command_callback/test_shellcheck_command_callback.vader
+++ b/test/command_callback/test_shellcheck_command_callback.vader
@@ -45,3 +45,12 @@ Execute(The shellcheck command should include the dialect):
AssertEqual
\ 'shellcheck -s bash -f gcc -',
\ ale_linters#sh#shellcheck#GetCommand(bufnr(''))
+
+Execute(The shellcheck command should include the dialect before options and exclusions):
+ let b:is_bash = 1
+ let b:ale_sh_shellcheck_options = '--foobar'
+ let b:ale_sh_shellcheck_exclusions = 'foo,bar'
+
+ AssertEqual
+ \ 'shellcheck -s bash --foobar -e foo,bar -f gcc -',
+ \ ale_linters#sh#shellcheck#GetCommand(bufnr(''))