test_bashate_handler.vader
1 Before: 2 runtime ale_linters/sh/bashate.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The bashate handler should handle basic errors): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 777, 12 \ 'col': 1, 13 \ 'text': 'E003 Indent not multiple of 4', 14 \ }, 15 \ { 16 \ 'lnum': 783, 17 \ 'col': 1, 18 \ 'text': 'E020 Function declaration not in format ^function name {$', 19 \ }, 20 \ { 21 \ 'lnum': 786, 22 \ 'col': 1, 23 \ 'text': 'E010 The "do" should be on same line as for', 24 \ }, 25 \ { 26 \ 'lnum': 791, 27 \ 'col': 1, 28 \ 'text': 'E006 Line too long', 29 \ }, 30 \ ], 31 \ ale_linters#sh#bashate#Handle(bufnr(''), [ 32 \ 'run:777:1: E003 Indent not multiple of 4', 33 \ 'run:783:1: E020 Function declaration not in format ^function name {$', 34 \ 'run:786:1: E010 The "do" should be on same line as for', 35 \ 'run:791:1: E006 Line too long', 36 \ ])