diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | ale_linters/markdown/remark_lint.vim | 3 | ||||
-rw-r--r-- | test/command_callback/test_remark_lint_command_callbacks.vader | 10 |
3 files changed, 7 insertions, 8 deletions
@@ -140,7 +140,7 @@ formatting. | Lua | [luac](https://www.lua.org/manual/5.1/luac.html), [luacheck](https://github.com/mpeterv/luacheck) | | Mail | [alex](https://github.com/wooorm/alex) !!, [proselint](http://proselint.com/), [vale](https://github.com/ValeLint/vale) | | Make | [checkmake](https://github.com/mrtazz/checkmake) | -| Markdown | [alex](https://github.com/wooorm/alex) !!, [markdownlint](https://github.com/DavidAnson/markdownlint) !!, [mdl](https://github.com/mivok/markdownlint), [prettier](https://github.com/prettier/prettier), [proselint](http://proselint.com/), [redpen](http://redpen.cc/), [remark-lint](https://github.com/wooorm/remark-lint) !!, [textlint](https://textlint.github.io/), [vale](https://github.com/ValeLint/vale), [write-good](https://github.com/btford/write-good) | +| Markdown | [alex](https://github.com/wooorm/alex) !!, [markdownlint](https://github.com/DavidAnson/markdownlint) !!, [mdl](https://github.com/mivok/markdownlint), [prettier](https://github.com/prettier/prettier), [proselint](http://proselint.com/), [redpen](http://redpen.cc/), [remark-lint](https://github.com/wooorm/remark-lint), [textlint](https://textlint.github.io/), [vale](https://github.com/ValeLint/vale), [write-good](https://github.com/btford/write-good) | | MATLAB | [mlint](https://www.mathworks.com/help/matlab/ref/mlint.html) | | Mercury | [mmc](http://mercurylang.org) !! | | NASM | [nasm](https://www.nasm.us/) !! | diff --git a/ale_linters/markdown/remark_lint.vim b/ale_linters/markdown/remark_lint.vim index 7e55c972..195b0f5a 100644 --- a/ale_linters/markdown/remark_lint.vim +++ b/ale_linters/markdown/remark_lint.vim @@ -16,7 +16,7 @@ function! ale_linters#markdown#remark_lint#GetCommand(buffer) abort return ale#node#Executable(a:buffer, l:executable) \ . (!empty(l:options) ? ' ' . l:options : '') - \ . ' --no-stdout --no-color %s' + \ . ' --no-stdout --no-color' endfunction function! ale_linters#markdown#remark_lint#Handle(buffer, lines) abort @@ -47,6 +47,5 @@ call ale#linter#Define('markdown', { \ 'executable_callback': 'ale_linters#markdown#remark_lint#GetExecutable', \ 'command_callback': 'ale_linters#markdown#remark_lint#GetCommand', \ 'callback': 'ale_linters#markdown#remark_lint#Handle', -\ 'lint_file': 1, \ 'output_stream': 'stderr', \}) diff --git a/test/command_callback/test_remark_lint_command_callbacks.vader b/test/command_callback/test_remark_lint_command_callbacks.vader index 20d72fca..f3ab7550 100644 --- a/test/command_callback/test_remark_lint_command_callbacks.vader +++ b/test/command_callback/test_remark_lint_command_callbacks.vader @@ -7,19 +7,19 @@ After: Execute(The default command should be correct): AssertLinter 'remark', - \ ale#Escape('remark') . ' --no-stdout --no-color %s' + \ ale#Escape('remark') . ' --no-stdout --no-color' Execute(The executable should be configurable): let b:ale_markdown_remark_lint_executable = 'foobar' AssertLinter 'foobar', - \ ale#Escape('foobar') . ' --no-stdout --no-color %s' + \ ale#Escape('foobar') . ' --no-stdout --no-color' Execute(The options should be configurable): let b:ale_markdown_remark_lint_options = '--something' AssertLinter 'remark', - \ ale#Escape('remark') . ' --something --no-stdout --no-color %s' + \ ale#Escape('remark') . ' --something --no-stdout --no-color' Execute(The local executable from .bin should be used if available): call ale#test#SetFilename('remark_lint_paths/with_bin_path/foo.md') @@ -27,11 +27,11 @@ Execute(The local executable from .bin should be used if available): AssertLinter \ ale#path#Simplify(g:dir . '/remark_lint_paths/with_bin_path/node_modules/.bin/remark'), \ ale#Escape(ale#path#Simplify(g:dir . '/remark_lint_paths/with_bin_path/node_modules/.bin/remark')) - \ . ' --no-stdout --no-color %s' + \ . ' --no-stdout --no-color' Execute(The global executable should be uesd if the option is set): let b:ale_markdown_remark_lint_use_global = 1 call ale#test#SetFilename('remark_lint_paths/with_bin_path/foo.md') AssertLinter 'remark', ale#Escape('remark') - \ . ' --no-stdout --no-color %s' + \ . ' --no-stdout --no-color' |