]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_bashate_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:

Merge commit '294584081929424aec883f90c7d6515b3743358d' as '.vim/bundle/vim-lsp-ale'
[etc/vim.git] / .vim / bundle / ale / test / handler / 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   \ ])