]> git.madduck.net Git - etc/vim.git/blob - test/handler/test_gitlablint_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / handler / 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   \ ])