summaryrefslogtreecommitdiff
path: root/test/handler/test_vale_handler.vader
diff options
context:
space:
mode:
authorJohannes Wienke <languitar@semipol.de>2017-12-18 17:10:57 +0100
committerJohannes Wienke <languitar@semipol.de>2017-12-18 17:10:57 +0100
commit79aaec5a99c2fa4455758d4b0483b13fe4e0db78 (patch)
treee38943ec759626e5fc22f9d1c0306696298fc298 /test/handler/test_vale_handler.vader
parent5577d567d13ab922ee1c97fc5d17d468f4c30876 (diff)
downloadale-79aaec5a99c2fa4455758d4b0483b13fe4e0db78.zip
Missing warning level 'suggestion' for vale
Vale can also, optionally, raise suggestions. These weren't covered yet.
Diffstat (limited to 'test/handler/test_vale_handler.vader')
-rw-r--r--test/handler/test_vale_handler.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/handler/test_vale_handler.vader b/test/handler/test_vale_handler.vader
index afc32db9..37badb47 100644
--- a/test/handler/test_vale_handler.vader
+++ b/test/handler/test_vale_handler.vader
@@ -32,6 +32,14 @@ Execute(The vale handler should handle a normal example):
\ 'text': "'Documentation' is repeated!",
\ 'code': 'vale.Repetition',
\ },
+ \ {
+ \ 'lnum': 7,
+ \ 'col': 1,
+ \ 'end_col': 27,
+ \ 'type': 'I',
+ \ 'text': "'Documentation' is repeated!",
+ \ 'code': 'vale.Repetition',
+ \ },
\ ],
\ ale#handlers#vale#Handle(bufnr(''), [
\ '{',
@@ -61,6 +69,19 @@ Execute(The vale handler should handle a normal example):
\ ' 27',
\ ' ],',
\ ' "Hide": false',
+ \ ' },',
+ \ ' {',
+ \ ' "Check": "vale.Repetition",',
+ \ ' "Description": "",',
+ \ ' "Line": 7,',
+ \ ' "Link": "",',
+ \ " \"Message\": \"'Documentation' is repeated!\",",
+ \ ' "Severity": "suggestion",',
+ \ ' "Span": [',
+ \ ' 1,',
+ \ ' 27',
+ \ ' ],',
+ \ ' "Hide": false',
\ ' }',
\ ' ]',
\ '}',