mirror of https://github.com/dense-analysis/ale
29 lines
797 B
Plaintext
29 lines
797 B
Plaintext
Before:
|
|
runtime ale_linters/java/checkstyle.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute(The checkstyle handler should parse lines correctly):
|
|
AssertEqual
|
|
\ [
|
|
\ {
|
|
\ 'lnum': 101,
|
|
\ 'col': 0,
|
|
\ 'text': '''method def rcurly'' has incorrect indentation level 4, expected level should be 2.',
|
|
\ 'code': 'Indentation',
|
|
\ 'type': 'W',
|
|
\ },
|
|
\ {
|
|
\ 'lnum': 63,
|
|
\ 'col': 3,
|
|
\ 'text': 'Missing a Javadoc comment.',
|
|
\ 'code': '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]',
|
|
\ ])
|