2017-10-19 08:22:47 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/markdown/remark_lint.vim
|
|
|
|
|
2017-11-15 17:21:17 +00:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
2017-10-19 08:22:47 +00:00
|
|
|
Execute(Warning and error messages should be handled correctly):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 1,
|
|
|
|
\ 'col': 4,
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ 'text': 'Incorrect list-item indent: add 1 space list-item-indent remark-lint',
|
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 3,
|
|
|
|
\ 'col': 5,
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ 'text': 'Incorrect list-item indent: remove 1 space list-item-indent remark-lint',
|
|
|
|
\ },
|
2018-03-22 10:40:47 +00:00
|
|
|
\ {
|
|
|
|
\ 'lnum': 18,
|
|
|
|
\ 'col': 71,
|
|
|
|
\ 'end_lnum': 19,
|
|
|
|
\ 'end_col': 1,
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ 'text': 'Missing new line after list item list-item-spacing remark-lint',
|
|
|
|
\ },
|
2017-10-19 08:22:47 +00:00
|
|
|
\ ],
|
|
|
|
\ ale_linters#markdown#remark_lint#Handle(1, [
|
|
|
|
\ 'foo.md',
|
|
|
|
\ ' 1:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint',
|
|
|
|
\ ' 3:5 error Incorrect list-item indent: remove 1 space list-item-indent remark-lint',
|
2018-03-22 10:40:47 +00:00
|
|
|
\ ' 18:71-19:1 error Missing new line after list item list-item-spacing remark-lint',
|
2017-10-19 08:22:47 +00:00
|
|
|
\ '',
|
|
|
|
\ '⚠ 1 warnings',
|
2018-03-22 10:40:47 +00:00
|
|
|
\ '✘ 2 errors',
|
2017-10-19 08:22:47 +00:00
|
|
|
\])
|