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

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / ale / test / handler / test_markdownlint_handler.vader
1 Before:
2   runtime ale_linters/markdown/markdownlint.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(The Markdownlint handler should parse output with a column correctly):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 10,
12   \     'col':  20,
13   \     'code': 'MD013/line-length',
14   \     'text': 'Line length [Expected: 80; Actual: 114]',
15   \     'type': 'W'
16   \   }
17   \ ],
18   \ ale#handlers#markdownlint#Handle(0, [
19   \ 'README.md:10:20 MD013/line-length Line length [Expected: 80; Actual: 114]'
20   \ ])
21
22 Execute(The Markdownlint handler should parse output with multiple slashes in rule name correctly):
23   AssertEqual
24   \ [
25   \   {
26   \     'lnum': 10,
27   \     'code': 'MD022/blanks-around-headings/blanks-around-headers',
28   \     'text': 'Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "### something"]',
29   \     'type': 'W'
30   \   }
31   \ ],
32   \ ale#handlers#markdownlint#Handle(0, [
33   \ 'README.md:10 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "### something"]'
34   \ ])