2018-03-04 00:32:32 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/markdown/markdownlint.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The Markdownlint handler should parse output with a column correctly):
|
2020-07-29 21:51:43 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [
|
2018-03-04 00:32:32 +00:00
|
|
|
\ {
|
2020-07-29 21:51:43 +00:00
|
|
|
\ 'lnum': 10,
|
|
|
|
\ 'col': 20,
|
|
|
|
\ 'code': 'MD013/line-length',
|
|
|
|
\ 'text': 'Line length [Expected: 80; Actual: 114]',
|
2018-03-04 00:32:32 +00:00
|
|
|
\ 'type': 'W'
|
|
|
|
\ }
|
|
|
|
\ ],
|
|
|
|
\ ale#handlers#markdownlint#Handle(0, [
|
2020-07-29 21:51:43 +00:00
|
|
|
\ 'README.md:10:20 MD013/line-length Line length [Expected: 80; Actual: 114]'
|
2018-03-04 00:32:32 +00:00
|
|
|
\ ])
|
2020-07-30 23:14:57 +00:00
|
|
|
|
|
|
|
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"]'
|
|
|
|
\ ])
|