summaryrefslogtreecommitdiff
path: root/ale_linters/text
diff options
context:
space:
mode:
authorJohannes Wienke <languitar@semipol.de>2017-12-17 16:49:57 +0100
committerJohannes Wienke <languitar@semipol.de>2017-12-17 16:49:57 +0100
commit96b90b45db5070c964adb14f1a0ac67c61571648 (patch)
treeca4986326a7b316b49f7710b3a7638842fee0ff5 /ale_linters/text
parentc4956657dc519aaae679b5a04af9b63b0aacabbe (diff)
downloadale-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.vim4
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',
\})