]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_actionlint_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_actionlint_handler.vader
1 Before:
2   runtime ale_linters/yaml/actionlint.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(Problems should be parsed correctly for actionlint):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 2,
12   \     'col': 1,
13   \     'type': 'E',
14   \     'text': '"jobs" section is missing in workflow',
15   \     'code': 'syntax-check',
16   \   },
17   \   {
18   \     'lnum': 56,
19   \     'col': 23,
20   \     'type': 'E',
21   \     'text': 'property "unknown_input" is not defined in object type {input7: bool; input0: any; input1: any; input2: string; input3: any; input4: any; input5: number; input6: number}',
22   \     'code': 'expression',
23   \   },
24   \ ],
25   \ ale_linters#yaml#actionlint#Handle(bufnr(''), [
26   \   '.codecov.yaml:2:1: "jobs" section is missing in workflow [syntax-check]',
27   \   'workflow_call_event.yaml:56:23: property "unknown_input" is not defined in object type {input7: bool; input0: any; input1: any; input2: string; input3: any; input4: any; input5: number; input6: number} [expression]',
28   \ ])
29
30 Execute(Shellcheck issues should be reported at the line they appear):
31   AssertEqual
32   \ [
33   \   {
34   \     'lnum': 19,
35   \     'col': 9,
36   \     'type': 'E',
37   \     'text': 'Double quote to prevent globbing and word splitting',
38   \     'code': 'shellcheck SC2086',
39   \   },
40   \ ],
41   \ ale_linters#yaml#actionlint#Handle(bufnr(''), [
42   \   'validate.yml:19:9: shellcheck reported issue in this script: SC2086:info:1:15: Double quote to prevent globbing and word splitting [shellcheck]'
43   \ ])