2018-03-03 13:27:19 +00:00
|
|
|
Before:
|
2018-07-15 18:24:53 +01:00
|
|
|
call ale#assert#SetUpLinterTest('markdown', 'mdl')
|
2018-03-03 13:27:19 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 18:24:53 +01:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-03-03 13:27:19 +00:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2018-07-15 18:24:53 +01:00
|
|
|
AssertLinter 'mdl', ale#Escape('mdl')
|
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'
|
|
|
|
|
2018-07-15 18:24:53 +01:00
|
|
|
AssertLinter 'foo bar', ale#Escape('foo bar') . ' --wat'
|
2018-05-01 19:29:06 -03:00
|
|
|
|
|
|
|
Execute(Setting bundle appends 'exec mdl'):
|
|
|
|
let g:ale_markdown_mdl_executable = 'path to/bundle'
|
|
|
|
|
2018-07-15 18:24:53 +01:00
|
|
|
AssertLinter 'path to/bundle', ale#Escape('path to/bundle') . ' exec mdl'
|