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.
This commit is contained in:
Johannes Wienke
2017-12-17 16:49:57 +01:00
parent c4956657dc
commit 96b90b45db
5 changed files with 109 additions and 6 deletions

View File

@@ -4,6 +4,6 @@
call ale#linter#Define('mail', {
\ 'name': 'vale',
\ 'executable': 'vale',
\ 'command': 'vale --output=line %t',
\ 'callback': 'ale#handlers#unix#HandleAsWarning',
\ 'command': 'vale --output=JSON %t',
\ 'callback': 'ale#handlers#vale#Handle',
\})