diff options
author | Johannes Wienke <languitar@semipol.de> | 2017-12-17 16:49:57 +0100 |
---|---|---|
committer | Johannes Wienke <languitar@semipol.de> | 2017-12-17 16:49:57 +0100 |
commit | 96b90b45db5070c964adb14f1a0ac67c61571648 (patch) | |
tree | ca4986326a7b316b49f7710b3a7638842fee0ff5 /ale_linters/text | |
parent | c4956657dc519aaae679b5a04af9b63b0aacabbe (diff) | |
download | ale-96b90b45db5070c964adb14f1a0ac67c61571648.zip |
Use JSON output with vale
Switches all vale instances to JSON output and provides an appropriate
handler for that. Without JSON, no end_col is provided and text
highlighting only catches the first character of every result.
Diffstat (limited to 'ale_linters/text')
-rw-r--r-- | ale_linters/text/vale.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/text/vale.vim b/ale_linters/text/vale.vim index 60bd799f..cf37c2f8 100644 --- a/ale_linters/text/vale.vim +++ b/ale_linters/text/vale.vim @@ -4,6 +4,6 @@ call ale#linter#Define('text', { \ 'name': 'vale', \ 'executable': 'vale', -\ 'command': 'vale --output=line %t', -\ 'callback': 'ale#handlers#unix#HandleAsWarning', +\ 'command': 'vale --output=JSON %t', +\ 'callback': 'ale#handlers#vale#Handle', \}) |