summaryrefslogtreecommitdiff
path: root/test/handler/test_rubocop_handler.vader
blob: 8fa8374af7ebbb5aa2d6e3c2b78c392ecdc7fa6b (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
39
40
Execute(The rubocop handler should parse lines correctly):
  runtime ale_linters/ruby/rubocop.vim

  AssertEqual
  \ [
  \   {
  \     'lnum': 83,
  \     'col': 29,
  \     'text': 'Prefer single-quoted strings...',
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 12,
  \     'col': 2,
  \     'text': 'Some error',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 10,
  \     'col': 5,
  \     'text': 'Regular warning',
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 11,
  \     'col': 1,
  \     'text': 'Another error',
  \     'type': 'E',
  \   },
  \ ],
  \ ale_linters#ruby#rubocop#Handle(347, [
  \   'This line should be ignored completely',
  \   'whatever:83:29: C: Prefer single-quoted strings...',
  \   'whatever:12:2: F: Some error',
  \   'whatever:10:5: W: Regular warning',
  \   'whatever:11:1: E: Another error',
  \ ])

After:
  call ale#linter#Reset()