summaryrefslogtreecommitdiff
path: root/test/handler/test_bashate_handler.vader
blob: b61bb95602b7d3442e5f99f82c78554453cff278 (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
Before:
  runtime ale_linters/sh/bashate.vim

After:
  call ale#linter#Reset()

Execute(The bashate handler should handle basic errors):
  AssertEqual
  \ [
  \   {
  \     'lnum': 777,
  \     'col': 1,
  \     'text': 'E003 Indent not multiple of 4',
  \   },
  \   {
  \     'lnum': 783,
  \     'col': 1,
  \     'text': 'E020 Function declaration not in format ^function name {$',
  \   },
  \   {
  \     'lnum': 786,
  \     'col': 1,
  \     'text': 'E010 The "do" should be on same line as for',
  \   },
  \   {
  \     'lnum': 791,
  \     'col': 1,
  \     'text': 'E006 Line too long',
  \   },
  \ ],
  \ ale_linters#sh#bashate#Handle(bufnr(''), [
  \   'run:777:1: E003 Indent not multiple of 4',
  \   'run:783:1: E020 Function declaration not in format ^function name {$',
  \   'run:786:1: E010 The "do" should be on same line as for',
  \   'run:791:1: E006 Line too long',
  \ ])