2019-12-19 18:11:25 +00:00
|
|
|
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'
|
|
|
|
|
2022-11-21 10:47:05 +00:00
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let g:ale_markdown_markdownlint_executable = 'foo bar'
|
|
|
|
|
|
|
|
AssertLinter 'foo bar', ale#Escape('foo bar') . ' %s'
|
|
|
|
|
2019-12-19 18:11:25 +00:00
|
|
|
Execute(The options should be configurable):
|
|
|
|
let g:ale_markdown_markdownlint_options = '--config ~/custom/.markdownlintrc'
|
|
|
|
|
|
|
|
AssertLinter 'markdownlint', ale#Escape('markdownlint') . ' --config ~/custom/.markdownlintrc %s'
|