File: test_markdownlint_handler.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (34 lines) | stat: -rw-r--r-- 1,098 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Before:
  runtime ale_linters/markdown/markdownlint.vim

After:
  call ale#linter#Reset()

Execute(The Markdownlint handler should parse output with a column correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 10,
  \     'col':  20,
  \     'code': 'MD013/line-length',
  \     'text': 'Line length [Expected: 80; Actual: 114]',
  \     'type': 'W'
  \   }
  \ ],
  \ ale#handlers#markdownlint#Handle(0, [
  \ 'README.md:10:20 MD013/line-length Line length [Expected: 80; Actual: 114]'
  \ ])

Execute(The Markdownlint handler should parse output with multiple slashes in rule name correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 10,
  \     'code': 'MD022/blanks-around-headings/blanks-around-headers',
  \     'text': 'Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "### something"]',
  \     'type': 'W'
  \   }
  \ ],
  \ ale#handlers#markdownlint#Handle(0, [
  \ 'README.md:10 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "### something"]'
  \ ])