]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_dart_analyze_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 '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / test / handler / test_dart_analyze_handler.vader
1 Before:
2   runtime ale_linters/dart/dart_analyze.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(Basic problems should be parsed correctly):
8   AssertEqual
9   \ [
10   \   {
11   \     'type': 'E',
12   \     'text': 'expected_token: Expected to find ''}''',
13   \     'lnum': 5,
14   \     'col': 1,
15   \   },
16   \   {
17   \     'type': 'W',
18   \     'text': 'invalid_assignment: A value of type ''String'' can''t be assigned to a variable of type ''int''',
19   \     'lnum': 2,
20   \     'col': 16,
21   \   },
22   \   {
23   \     'type': 'I',
24   \     'text': 'dead_code: Dead code. Try removing the code, or fixing the code before it so that it can be reached.',
25   \     'lnum': 8,
26   \     'col': 3,
27   \   },
28   \ ],
29   \ ale_linters#dart#dart_analyze#Handle(bufnr(''), [
30   \ 'Analyzing main.dart...',
31   \ '  error - main.dart:5:1 - Expected to find ''}'' - expected_token',
32   \ 'warning - main.dart:2:16 - A value of type ''String'' can''t be assigned to a variable of type ''int'' - invalid_assignment',
33   \ '   info - main.dart:8:3 - Dead code. Try removing the code, or fixing the code before it so that it can be reached. - dead_code',
34   \ '3 issues found.',
35   \ ])