diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-11-11 10:00:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-11 10:00:37 +0000 |
commit | d30da203b91345b472e5d83f048bd42a6ca13804 (patch) | |
tree | 21a60fbdf8237d845e06992237bfce6843f8633b /test | |
parent | 7dd460303d38b460373b795f6f74a5b0b967eb48 (diff) | |
parent | 8e24a1a91658600771512e80c0c42c1ab1d6c117 (diff) | |
download | ale-d30da203b91345b472e5d83f048bd42a6ca13804.zip |
Merge pull request #2063 from languitar/better-checkstyle
Checkstyle improvements
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_checkstyle_handler.vader | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/handler/test_checkstyle_handler.vader b/test/handler/test_checkstyle_handler.vader index 2f1f0f8d..218fe344 100644 --- a/test/handler/test_checkstyle_handler.vader +++ b/test/handler/test_checkstyle_handler.vader @@ -26,3 +26,16 @@ Execute(The checkstyle handler should parse lines correctly): \ '[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]', \ ]) + +Execute(The checkstyle handler should parse lines from older checkstyle versions correctly): + AssertEqual + \ [ + \ { + \ 'lnum': 289, + \ 'text': '''method def modifier'' have incorrect indentation level 4, expected level should be 2.', + \ 'type': 'W', + \ }, + \ ], + \ ale_linters#java#checkstyle#Handle(666, [ + \ '/home/languitar/src/rsb-java/rsb-java/src/main/java/rsb/Listener.java:289: warning: ''method def modifier'' have incorrect indentation level 4, expected level should be 2.', + \ ]) |