summaryrefslogtreecommitdiff
path: root/test/handler/test_scalastyle_handler.vader
blob: b03d18e7ade7159ea947b33ada76467e1fb6d8e6 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
Execute(The scalastyle handler should parse lines correctly):
  runtime! ale_linters/scala/scalastyle.vim

  AssertEqual
  \ [
  \   {
  \     'lnum': 190,
  \     'text': 'Missing or badly formed ScalaDoc: Missing @param str',
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 200,
  \     'col': 34,
  \     'text': 'There should be a space before the plus (+) sign',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 200,
  \     'col': 1,
  \     'text': 'There should be a space before the plus (+) sign',
  \     'type': 'E',
  \   },
  \ ],
  \ ale_linters#scala#scalastyle#Handle(347, [
  \    'Starting scalastyle',
  \    'start file /home/test/Doop.scala',
  \    'warning file=/home/test/Doop.scala message=Missing or badly formed ScalaDoc: Missing @param str line=190',
  \    'error file=/home/test/Doop.scala message=There should be a space before the plus (+) sign line=200 column=33',
  \    'error file=/home/test/Doop.scala message=There should be a space before the plus (+) sign line=200 column=0',
  \    'end file /home/test/Doop.scala',
  \    'Processed 1 file(s)',
  \    'Found 0 errors',
  \    'Found 3 warnings',
  \    'Finished in 934 ms',
  \ ])

After:
  call ale#linter#Reset()