diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-18 18:29:12 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-18 18:29:12 +0000 |
commit | 7455e2e97d0244c420c344ee1c737c93379bca4f (patch) | |
tree | 8b13a304d48552c2e04bb8c742a48304cfe34c5b /test | |
parent | 49ccfb1a00e09f6757b6e597883c95a34d612771 (diff) | |
download | ale-7455e2e97d0244c420c344ee1c737c93379bca4f.zip |
#852 - Capture error codes for checkstyle
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_checkstyle_handler.vader | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/handler/test_checkstyle_handler.vader b/test/handler/test_checkstyle_handler.vader index 03844516..2f1f0f8d 100644 --- a/test/handler/test_checkstyle_handler.vader +++ b/test/handler/test_checkstyle_handler.vader @@ -9,17 +9,20 @@ Execute(The checkstyle handler should parse lines correctly): \ [ \ { \ 'lnum': 101, - \ 'text': "'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]", + \ 'col': 0, + \ 'text': '''method def rcurly'' has incorrect indentation level 4, expected level should be 2.', + \ 'code': 'Indentation', \ 'type': 'W', \ }, \ { \ 'lnum': 63, \ 'col': 3, - \ 'text': "Missing a Javadoc comment. [JavadocMethod]", + \ 'text': 'Missing a Javadoc comment.', + \ 'code': 'JavadocMethod', \ 'type': 'W', \ }, \ ], \ ale_linters#java#checkstyle#Handle(666, [ - \ "[WARN] whatever:101: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]", - \ "[WARN] whatever:63:3: Missing a Javadoc comment. [JavadocMethod]", + \ '[WARN] whatever:101: ''method def rcurly'' has incorrect indentation level 4, expected level should be 2. [Indentation]', + \ '[WARN] whatever:63:3: Missing a Javadoc comment. [JavadocMethod]', \ ]) |