summaryrefslogtreecommitdiff
path: root/test/handler/test_checkstyle_handler.vader
blob: 038445169a49f361fbc13955c21110bb4ff87ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Before:
  runtime ale_linters/java/checkstyle.vim

After:
  call ale#linter#Reset()

Execute(The checkstyle handler should parse lines correctly):
  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]",
  \ ])