/ test / handler / test_gitlablint_handler.vader
test_gitlablint_handler.vader
 1  Before:
 2    runtime! ale_linters/yaml/gitlablint.vim
 3  
 4  After:
 5    call ale#linter#Reset()
 6  
 7  Execute(Problems should be parsed correctly for gitlablint):
 8    AssertEqual
 9    \ [
10    \   {
11    \     'lnum': 0,
12    \     'col': 0,
13    \     'type': 'E',
14    \     'text': 'root config contains unknown keys: efore_script',
15    \   },
16    \   {
17    \     'lnum': 77,
18    \     'col': 3,
19    \     'type': 'E',
20    \     'text': '(<unknown>): could not find expected : while scanning a simple key',
21    \   },
22    \   {
23    \     'lnum': 0,
24    \     'col': 0,
25    \     'type': 'E',
26    \     'text': 'build:dev:rest job: undefined need: chck:dev',
27    \   },
28    \ ],
29    \ ale_linters#yaml#gitlablint#Handle(bufnr(''), [
30    \   'GitLab CI configuration is invalid',
31    \   'root config contains unknown keys: efore_script',
32    \   '(<unknown>): could not find expected : while scanning a simple key at line 77 column 3',
33    \   'build:dev:rest job: undefined need: chck:dev',
34    \ ])