]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_buildifier_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 'd49e95aa7ba744f0a7f544aca43afdb6aab41f24' as '.vim/bundle/asyncomplete...
[etc/vim.git] / .vim / bundle / ale / test / handler / test_buildifier_handler.vader
1 Before:
2   runtime ale_linters/bzl/buildifier.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(The buildifier handler should parse lines correctly):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 26,
12   \     'col': 1,
13   \     'type': 'E',
14   \     'text': 'syntax error near'';'' and move the next statement to the new line',
15   \   },
16   \   {
17   \     'lnum': 7,
18   \     'col': 0,
19   \     'type': 'W',
20   \     'text': 'unused-variable: Variable "foo" is unused. Please remove it. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#unused-variable)'
21   \   },
22   \ ],
23   \ ale_linters#bzl#buildifier#Handle(bufnr(''), [
24   \   'swiftformat/toolchains/assets.bzl:26:1: syntax error near'';'' and move the next statement to the new line',
25   \   'swiftformat/toolchains/assets.bzl:7: unused-variable: Variable "foo" is unused. Please remove it. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#unused-variable)',
26   \ ])