summaryrefslogtreecommitdiff
path: root/test/command_callback/test_shellcheck_command_callback.vader
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-02-10 22:47:53 +0000
committerGitHub <noreply@github.com>2019-02-10 22:47:53 +0000
commitb235e08b3ccbfd4a614b81e983f596559dd263cb (patch)
treeb1fc2bd99b77bc0bbad70b54de71d6fdf6a10b44 /test/command_callback/test_shellcheck_command_callback.vader
parent7a48750610bbed164750a3f0fbf0fd9e88fa56c5 (diff)
parenta0d4eb3699b2d3e7b7e5830950df10d84f370b8e (diff)
downloadale-b235e08b3ccbfd4a614b81e983f596559dd263cb.zip
Merge pull request #2289 from kevinoid/shellcheck-dialect
Support ale_sh_shellcheck_dialect to set shellcheck dialect
Diffstat (limited to 'test/command_callback/test_shellcheck_command_callback.vader')
-rw-r--r--test/command_callback/test_shellcheck_command_callback.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command_callback/test_shellcheck_command_callback.vader b/test/command_callback/test_shellcheck_command_callback.vader
index 22a9ccb5..c5360b7d 100644
--- a/test/command_callback/test_shellcheck_command_callback.vader
+++ b/test/command_callback/test_shellcheck_command_callback.vader
@@ -33,6 +33,18 @@ Execute(The shellcheck command should include the dialect):
AssertLinter 'shellcheck',
\ b:prefix . ale#Escape('shellcheck') . ' -s bash' . b:suffix
+Execute(The shellcheck command should use ale_sh_shellcheck_dialect):
+ let b:ale_sh_shellcheck_dialect = 'ksh93'
+
+ AssertLinter 'shellcheck',
+ \ b:prefix . ale#Escape('shellcheck') . ' -s ksh93' . b:suffix
+
+Execute(The shellcheck command should allow unspecified dialect):
+ let b:ale_sh_shellcheck_dialect = ''
+
+ AssertLinter 'shellcheck',
+ \ b:prefix . ale#Escape('shellcheck') . b:suffix
+
Execute(The shellcheck command should include the dialect before options and exclusions):
let b:is_bash = 1
let b:ale_sh_shellcheck_options = '--foobar'