Merge pull request #1239 from languitar/vale-suggestion
Missing warning level 'suggestion' for vale
This commit is contained in:
commit
91090f1af8
2 changed files with 23 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
||||||
function! ale#handlers#vale#GetType(severity) abort
|
function! ale#handlers#vale#GetType(severity) abort
|
||||||
if a:severity is? 'warning'
|
if a:severity is? 'warning'
|
||||||
return 'W'
|
return 'W'
|
||||||
|
elseif a:severity is? 'suggestion'
|
||||||
|
return 'I'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return 'E'
|
return 'E'
|
||||||
|
|
|
@ -32,6 +32,14 @@ Execute(The vale handler should handle a normal example):
|
||||||
\ 'text': "'Documentation' is repeated!",
|
\ 'text': "'Documentation' is repeated!",
|
||||||
\ 'code': 'vale.Repetition',
|
\ 'code': 'vale.Repetition',
|
||||||
\ },
|
\ },
|
||||||
|
\ {
|
||||||
|
\ 'lnum': 7,
|
||||||
|
\ 'col': 1,
|
||||||
|
\ 'end_col': 27,
|
||||||
|
\ 'type': 'I',
|
||||||
|
\ 'text': "'Documentation' is repeated!",
|
||||||
|
\ 'code': 'vale.Repetition',
|
||||||
|
\ },
|
||||||
\ ],
|
\ ],
|
||||||
\ ale#handlers#vale#Handle(bufnr(''), [
|
\ ale#handlers#vale#Handle(bufnr(''), [
|
||||||
\ '{',
|
\ '{',
|
||||||
|
@ -61,6 +69,19 @@ Execute(The vale handler should handle a normal example):
|
||||||
\ ' 27',
|
\ ' 27',
|
||||||
\ ' ],',
|
\ ' ],',
|
||||||
\ ' "Hide": false',
|
\ ' "Hide": false',
|
||||||
|
\ ' },',
|
||||||
|
\ ' {',
|
||||||
|
\ ' "Check": "vale.Repetition",',
|
||||||
|
\ ' "Description": "",',
|
||||||
|
\ ' "Line": 7,',
|
||||||
|
\ ' "Link": "",',
|
||||||
|
\ " \"Message\": \"'Documentation' is repeated!\",",
|
||||||
|
\ ' "Severity": "suggestion",',
|
||||||
|
\ ' "Span": [',
|
||||||
|
\ ' 1,',
|
||||||
|
\ ' 27',
|
||||||
|
\ ' ],',
|
||||||
|
\ ' "Hide": false',
|
||||||
\ ' }',
|
\ ' }',
|
||||||
\ ' ]',
|
\ ' ]',
|
||||||
\ '}',
|
\ '}',
|
||||||
|
|
Reference in a new issue