File: test_remark_lint_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 (39 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download | duplicates (3)
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
35
36
37
38
39
Before:
  runtime ale_linters/markdown/remark_lint.vim

After:
  call ale#linter#Reset()

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',
  \   },
  \   {
  \     'lnum': 18,
  \     'col': 71,
  \     'end_lnum': 19,
  \     'end_col': 1,
  \     'type': 'E',
  \     'text': 'Missing new line after list item  list-item-spacing  remark-lint',
  \   },
  \ ],
  \ 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',
  \   '  18:71-19:1  error  Missing new line after list item  list-item-spacing  remark-lint',
  \   '',
  \   '⚠ 1 warnings',
  \   '✘ 2 errors',
  \])