2017-05-15 19:59:50 +00:00
|
|
|
Before:
|
2017-05-12 13:42:32 +00:00
|
|
|
runtime ale_linters/java/checkstyle.vim
|
|
|
|
|
2017-05-15 19:59:50 +00:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(The checkstyle handler should parse lines correctly):
|
2017-05-12 13:42:32 +00:00
|
|
|
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]",
|
|
|
|
\ ])
|