diff options
author | davidsierradz <davidsierradz@gmail.com> | 2019-12-19 13:11:25 -0500 |
---|---|---|
committer | davidsierradz <davidsierradz@gmail.com> | 2019-12-19 13:11:25 -0500 |
commit | 0cea55924ba7780c1f17d17e8509160c77d1ab7c (patch) | |
tree | 890b4c5a3c3153ee7f4ea9bb9c7ab91801b7c16c /test/command_callback/test_markdown_markdownlint_command_callback.vader | |
parent | 5f84325cd811ec179b7f3642652438c6a45b174d (diff) | |
download | ale-0cea55924ba7780c1f17d17e8509160c77d1ab7c.zip |
allow passing custom options to markdownlint
Diffstat (limited to 'test/command_callback/test_markdown_markdownlint_command_callback.vader')
-rw-r--r-- | test/command_callback/test_markdown_markdownlint_command_callback.vader | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/command_callback/test_markdown_markdownlint_command_callback.vader b/test/command_callback/test_markdown_markdownlint_command_callback.vader new file mode 100644 index 00000000..12766cfd --- /dev/null +++ b/test/command_callback/test_markdown_markdownlint_command_callback.vader @@ -0,0 +1,13 @@ +Before: + call ale#assert#SetUpLinterTest('markdown', 'markdownlint') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct): + AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' %s' + +Execute(The options should be configurable): + let g:ale_markdown_markdownlint_options = '--config ~/custom/.markdownlintrc' + + AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' --config ~/custom/.markdownlintrc %s' |