summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi WADA <twada@amy.hi-ho.ne.jp>2018-07-10 22:06:43 +0900
committerWADA Takashi <twada@amy.hi-ho.ne.jp>2018-07-16 18:33:22 +0900
commitdbf051e62bd1c61510286310db0c999a33fcc711 (patch)
tree894e2fd6a0f3220c8944d709584b26e2752c18ab
parentf369aa65a22e2aa2c4d7e6a1d30dcbcf2ad9ea4a (diff)
downloadale-dbf051e62bd1c61510286310db0c999a33fcc711.zip
remark-lint without saving to disk
-rw-r--r--README.md2
-rw-r--r--ale_linters/markdown/remark_lint.vim3
-rw-r--r--test/command_callback/test_remark_lint_command_callbacks.vader10
3 files changed, 7 insertions, 8 deletions
diff --git a/README.md b/README.md
index 67602b0c..26baf76c 100644
--- a/README.md
+++ b/README.md
@@ -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'