summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-05-15 20:58:06 +0100
committerGitHub <noreply@github.com>2017-05-15 20:58:06 +0100
commit42155049a5fa0a44a2c4b24993eb045ec6a1c525 (patch)
tree3aed12c758ce6f112dd3e7c5c516dc2087f67c34 /test
parent11a50b25807d7730adb42575d72f990fb8c32a7b (diff)
parent9baae52d1afab8af832c4249eefc19e7dd28a251 (diff)
downloadale-42155049a5fa0a44a2c4b24993eb045ec6a1c525.zip
Merge pull request #551 from meunierd/add-checkstyle-linter
Add checkstyle linter
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_checkstyle_handler.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/handler/test_checkstyle_handler.vader b/test/handler/test_checkstyle_handler.vader
new file mode 100644
index 00000000..6234b84e
--- /dev/null
+++ b/test/handler/test_checkstyle_handler.vader
@@ -0,0 +1,21 @@
+Execute(The checkstyle handler should parse lines correctly):
+ runtime ale_linters/java/checkstyle.vim
+
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 101,
+ \ 'text': "'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]",
+ \ 'type': 'W',
+ \ },
+ \ {
+ \ 'lnum': 63,
+ \ 'col': 3,
+ \ 'text': "Missing a Javadoc comment. [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]",
+ \ ])