summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-05-29 20:16:51 +0100
committerGitHub <noreply@github.com>2019-05-29 20:16:51 +0100
commit6b819dd74a8580f5c91739bd9bdd34071dd2a9ec (patch)
tree4d3332034214ccead6aa6830f53cbf94020cf299 /test
parent90b1ea230db9132d7ef455ea3b395733c12206e1 (diff)
parent181bc69c8c0b113d8f5b8325f6faf1580d1fadd7 (diff)
downloadale-6b819dd74a8580f5c91739bd9bdd34071dd2a9ec.zip
Merge pull request #2543 from hsanson/fix-checkstyle-handler
Fix java checkstyle handler.
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_checkstyle_handler.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/handler/test_checkstyle_handler.vader b/test/handler/test_checkstyle_handler.vader
index 218fe344..c60bbc82 100644
--- a/test/handler/test_checkstyle_handler.vader
+++ b/test/handler/test_checkstyle_handler.vader
@@ -21,10 +21,18 @@ Execute(The checkstyle handler should parse lines correctly):
\ 'code': 'JavadocMethod',
\ 'type': 'W',
\ },
+ \ {
+ \ 'lnum': 11,
+ \ 'col': 7,
+ \ 'text': 'WhitespaceAround: ''if'' is not followed by whitespace.',
+ \ 'code': 'WhitespaceAround',
+ \ '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:11:7: WhitespaceAround: ''if'' is not followed by whitespace. [WhitespaceAround]',
\ ])
Execute(The checkstyle handler should parse lines from older checkstyle versions correctly):