diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-13 23:36:15 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-13 23:36:15 +0000 |
commit | 037aaae593bba96b71d89c6f9bd5f14e3846e067 (patch) | |
tree | a5e260af0f19b0fbf0212bee606151b80cbfcca6 /test/handler | |
parent | fea708cff33343dbeff496ba2c25ed2fe7268fed (diff) | |
download | ale-037aaae593bba96b71d89c6f9bd5f14e3846e067.zip |
#852 - Capture error codes for TSLint
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_tslint_handler.vader | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/test/handler/test_tslint_handler.vader b/test/handler/test_tslint_handler.vader index db6294cf..d6ed353b 100644 --- a/test/handler/test_tslint_handler.vader +++ b/test/handler/test_tslint_handler.vader @@ -28,7 +28,8 @@ Execute(The tslint handler should parse lines correctly): \ 'end_lnum': 1, \ 'type': 'E', \ 'end_col': 15, - \ 'text': 'semicolon: Missing semicolon' + \ 'text': 'Missing semicolon', + \ 'code': 'semicolon', \ }, \ { \ 'lnum': 2, @@ -37,7 +38,7 @@ Execute(The tslint handler should parse lines correctly): \ 'end_lnum': 3, \ 'type': 'W', \ 'end_col': 12, - \ 'text': 'Something else' + \ 'text': 'Something else', \ }, \ { \ 'lnum': 2, @@ -46,7 +47,8 @@ Execute(The tslint handler should parse lines correctly): \ 'end_lnum': 3, \ 'type': 'W', \ 'end_col': 12, - \ 'text': 'something: Something else' + \ 'text': 'Something else', + \ 'code': 'something', \ }, \ { \ 'lnum': 31, @@ -55,7 +57,8 @@ Execute(The tslint handler should parse lines correctly): \ 'end_lnum': 31, \ 'type': 'E', \ 'end_col': 20, - \ 'text': 'no-console: Calls to console.log are not allowed.' + \ 'text': 'Calls to console.log are not allowed.', + \ 'code': 'no-console', \ }, \ ] , \ ale_linters#typescript#tslint#Handle(bufnr(''), [json_encode([ @@ -155,7 +158,8 @@ Execute(The tslint handler report errors for empty files by default): \ 'end_lnum': 2, \ 'type': 'E', \ 'end_col': 1, - \ 'text': 'no-consecutive-blank-lines: Consecutive blank lines are forbidden', + \ 'text': 'Consecutive blank lines are forbidden', + \ 'code': 'no-consecutive-blank-lines', \ }, \ ], \ ale_linters#typescript#tslint#Handle(bufnr(''), [json_encode([{ @@ -228,7 +232,8 @@ Execute(The tslint handler should report errors when the ignore option is on, bu \ 'end_lnum': 2, \ 'type': 'E', \ 'end_col': 1, - \ 'text': 'no-consecutive-blank-lines: Consecutive blank lines are forbidden', + \ 'text': 'Consecutive blank lines are forbidden', + \ 'code': 'no-consecutive-blank-lines', \ }, \ ], \ ale_linters#typescript#tslint#Handle(bufnr(''), [json_encode([{ |