2018-03-03 13:27:19 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('markdown', 'mdl')
|
2018-03-03 13:27:19 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-03-03 13:27:19 +00:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2019-08-13 04:15:53 +00:00
|
|
|
AssertLinter 'mdl', ale#Escape('mdl') . ' -j'
|
2018-03-03 13:27:19 +00:00
|
|
|
|
|
|
|
Execute(The executable and options should be configurable):
|
|
|
|
let g:ale_markdown_mdl_executable = 'foo bar'
|
|
|
|
let g:ale_markdown_mdl_options = '--wat'
|
|
|
|
|
2019-08-13 04:15:53 +00:00
|
|
|
AssertLinter 'foo bar', ale#Escape('foo bar') . ' -j --wat'
|
2018-05-01 22:29:06 +00:00
|
|
|
|
|
|
|
Execute(Setting bundle appends 'exec mdl'):
|
|
|
|
let g:ale_markdown_mdl_executable = 'path to/bundle'
|
|
|
|
|
2019-08-13 04:15:53 +00:00
|
|
|
AssertLinter 'path to/bundle', ale#Escape('path to/bundle') . ' exec mdl -j'
|