]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_salt_salt_lint.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_salt_salt_lint.vader
1 Before:
2   runtime ale_linters/salt/salt_lint.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(The salt handler should parse lines correctly and show error in severity HIGH):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 5,
12   \     'code': 207,
13   \     'text': 'File modes should always be encapsulated in quotation marks',
14   \     'type': 'E'
15   \   }
16   \ ],
17   \ ale_linters#salt#salt_lint#Handle(255, [
18   \ '[{"id": "207", "message": "File modes should always be encapsulated in quotation marks", "filename": "test.sls", "linenumber": 5, "line": "    - mode: 0755", "severity": "HIGH"}]'
19   \ ])
20
21
22 Execute(The salt handler should parse lines correctly and show error in severity not HIGH):
23   AssertEqual
24   \ [
25   \   {
26   \     'lnum': 27,
27   \     'code': 204,
28   \     'text': 'Lines should be no longer that 160 chars',
29   \     'type': 'W'
30   \   }
31   \ ],
32   \ ale_linters#salt#salt_lint#Handle(255, [
33   \ '[{"id": "204", "message": "Lines should be no longer that 160 chars", "filename": "test2.sls", "linenumber": 27, "line": "this line is definitely longer than 160 chars, this line is definitely longer than 160 chars, this line is definitely longer than 160 chars", "severity": "VERY_LOW"}]'
34   \ ])