All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 " This is just one language for the linter.
3 call ale#assert#SetUpLinterTest('markdown', 'remark_lint')
6 call ale#assert#TearDownLinterTest()
8 Execute(The default command should be correct):
10 \ ale#Escape('remark') . ' --no-stdout --no-color'
12 Execute(The executable should be configurable):
13 let b:ale_markdown_remark_lint_executable = 'foobar'
15 AssertLinter 'foobar',
16 \ ale#Escape('foobar') . ' --no-stdout --no-color'
18 Execute(The options should be configurable):
19 let b:ale_markdown_remark_lint_options = '--something'
21 AssertLinter 'remark',
22 \ ale#Escape('remark') . ' --something --no-stdout --no-color'
24 Execute(The local executable from .bin should be used if available):
25 call ale#test#SetFilename('../test-files/remark_lint/with_bin_path/foo.md')
28 \ ale#path#Simplify(g:dir . '/../test-files/remark_lint/with_bin_path/node_modules/.bin/remark'),
29 \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/remark_lint/with_bin_path/node_modules/.bin/remark'))
30 \ . ' --no-stdout --no-color'
32 Execute(The global executable should be used if the option is set):
33 let b:ale_markdown_remark_lint_use_global = 1
34 call ale#test#SetFilename('../test-files/remark_lint/with_bin_path/foo.md')
36 AssertLinter 'remark', ale#Escape('remark')
37 \ . ' --no-stdout --no-color'