2017-11-11 07:10:17 -05:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/rstcheck/rstcheck.vim
|
|
|
|
|
2017-11-15 12:21:17 -05:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
2017-11-11 07:10:17 -05:00
|
|
|
Execute(Warning and error messages should be handled correctly):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
2017-12-19 13:23:09 -05:00
|
|
|
\ 'filename': ale#path#Simplify(expand('%:p:h') . '/bad_python.rst'),
|
2017-11-11 07:10:17 -05:00
|
|
|
\ 'lnum': 7,
|
|
|
|
\ 'col': 0,
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ 'text': '(python) unexpected EOF while parsing',
|
|
|
|
\ },
|
|
|
|
\ {
|
2017-12-19 13:23:09 -05:00
|
|
|
\ 'filename': ale#path#Simplify(expand('%:p:h') . '/bad_cpp.rst'),
|
2017-11-11 07:10:17 -05:00
|
|
|
\ 'lnum': 9,
|
|
|
|
\ 'col': 0,
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ 'text': '(cpp) error: ''x'' was not declared in this scope',
|
|
|
|
\ },
|
|
|
|
\ {
|
2017-12-19 13:23:09 -05:00
|
|
|
\ 'filename': ale#path#Simplify(expand('%:p:h') . '/bad_rst.rst'),
|
2017-11-11 07:10:17 -05:00
|
|
|
\ 'lnum': 1,
|
|
|
|
\ 'col': 0,
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ 'text': 'Title overline & underline mismatch.',
|
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#rst#rstcheck#Handle(1, [
|
|
|
|
\ 'bad_python.rst:7: (ERROR/3) (python) unexpected EOF while parsing',
|
|
|
|
\ 'bad_cpp.rst:9: (ERROR/3) (cpp) error: ''x'' was not declared in this scope',
|
|
|
|
\ 'bad_rst.rst:1: (SEVERE/4) Title overline & underline mismatch.',
|
|
|
|
\])
|