mirror of https://github.com/dense-analysis/ale
add test to check if it properly ignores outputs with unknown error types
This commit is contained in:
parent
67c3fa9001
commit
2dbf4ee271
|
@ -19,7 +19,7 @@ Execute(The Vala-Lint handler should parse lines correctly):
|
||||||
\ 'col': 37,
|
\ 'col': 37,
|
||||||
\ 'text': 'Expected space before paren',
|
\ 'text': 'Expected space before paren',
|
||||||
\ 'code': 'space-before-paren',
|
\ 'code': 'space-before-paren',
|
||||||
\ 'type': 'E',
|
\ 'type': 'W',
|
||||||
\ },
|
\ },
|
||||||
\ {
|
\ {
|
||||||
\ 'lnum': 73,
|
\ 'lnum': 73,
|
||||||
|
@ -32,6 +32,23 @@ Execute(The Vala-Lint handler should parse lines correctly):
|
||||||
\ ale_linters#vala#vala_lint#Handle(bufnr(''), [
|
\ ale_linters#vala#vala_lint#Handle(bufnr(''), [
|
||||||
\ 'Application.vala',
|
\ 'Application.vala',
|
||||||
\ ' 18.18 error Expected space before paren space-before-paren',
|
\ ' 18.18 error Expected space before paren space-before-paren',
|
||||||
\ ' 64.37 error Expected space before paren space-before-paren',
|
\ ' 64.37 warn Expected space before paren space-before-paren',
|
||||||
|
\ ' 73.37 error Expected space before paren space-before-paren',
|
||||||
|
\ ])
|
||||||
|
|
||||||
|
Execute(The Vala-Lint handler should ignore unknown error types):
|
||||||
|
AssertEqual
|
||||||
|
\ [
|
||||||
|
\ {
|
||||||
|
\ 'lnum': 73,
|
||||||
|
\ 'col': 37,
|
||||||
|
\ 'text': 'Expected space before paren',
|
||||||
|
\ 'code': 'space-before-paren',
|
||||||
|
\ 'type': 'E',
|
||||||
|
\ },
|
||||||
|
\ ],
|
||||||
|
\ ale_linters#vala#vala_lint#Handle(bufnr(''), [
|
||||||
|
\ 'Application.vala',
|
||||||
|
\ ' 18.18 test Expected space before paren space-before-paren',
|
||||||
\ ' 73.37 error Expected space before paren space-before-paren',
|
\ ' 73.37 error Expected space before paren space-before-paren',
|
||||||
\ ])
|
\ ])
|
||||||
|
|
Loading…
Reference in New Issue