diff options
author | Devon Meunier <devon.meunier@shopify.com> | 2017-05-12 09:42:32 -0400 |
---|---|---|
committer | Devon Meunier <devon.meunier@shopify.com> | 2017-05-15 15:41:04 -0400 |
commit | 9baae52d1afab8af832c4249eefc19e7dd28a251 (patch) | |
tree | 09292c402445198082e350e919e9dbcfbee7d746 /test/handler | |
parent | 07b2542c0d6505f2a843e700d246367a522ecf64 (diff) | |
download | ale-9baae52d1afab8af832c4249eefc19e7dd28a251.zip |
Add checkstyle linter
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_checkstyle_handler.vader | 21 |
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]", + \ ]) |