ale/test/handler/test_rflint_handler.vader
w0rp ae1d051504
#4454 Clean up more tests and code
* Remove some tests we no longer need
* Delete blocks of redundant code
* Compress some tests together to simplify them
* Remove a little code for ancient linter versions
* Escape more executables we didn't escape before
* Rename a deno option that didn't match our conventions
2023-09-16 22:23:30 +01:00

33 lines
810 B
Plaintext

Before:
runtime ale_linters/robot/rflint.vim
After:
call ale#linter#Reset()
Execute(Warning and error messages should be handled correctly):
AssertEqual
\ [
\ {
\ 'bufnr': 1,
\ 'filename': 'test.robot',
\ 'type': 'W',
\ 'lnum': 1,
\ 'col': 2,
\ 'text': 'RequireSuiteDocumentation',
\ 'detail': 'No suite documentation',
\ },
\ {
\ 'bufnr': 1,
\ 'filename': 'test.robot',
\ 'type': 'E',
\ 'lnum': 3,
\ 'col': 4,
\ 'text': 'RequireTestDocumentation',
\ 'detail': 'No testcase documentation',
\ },
\ ],
\ ale_linters#robot#rflint#Handle(1, [
\ 'test.robot:W:1:2:RequireSuiteDocumentation:No suite documentation',
\ 'test.robot:E:3:4:RequireTestDocumentation:No testcase documentation'
\])