diff options
author | Horacio Sanson <hsanson@gmail.com> | 2021-01-06 11:19:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 11:19:29 +0900 |
commit | 4c454c96a9d142475b155a94cc24fad34eca26b2 (patch) | |
tree | 3c4a4e400c57eb944e0ffeead02090dfa72fb508 | |
parent | 7e4c125d38181a0e0d0c7883091e2fe683243ce4 (diff) | |
parent | 160af4945079ae8df28f298f6d508f15005418fb (diff) | |
download | ale-4c454c96a9d142475b155a94cc24fad34eca26b2.zip |
Merge pull request #3390 from benknoble/fix-dafny-filename
dafny: include correct filename in lint results
-rw-r--r-- | ale_linters/dafny/dafny.vim | 2 | ||||
-rw-r--r-- | test/handler/test_dafny_handler.vader | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/dafny/dafny.vim b/ale_linters/dafny/dafny.vim index b5b90675..e6021d99 100644 --- a/ale_linters/dafny/dafny.vim +++ b/ale_linters/dafny/dafny.vim @@ -6,7 +6,7 @@ function! ale_linters#dafny#dafny#Handle(buffer, lines) abort for l:match in ale#util#GetMatches(a:lines, l:pattern) call add(l:output, { - \ 'bufnr': a:buffer, + \ 'filename': l:match[1], \ 'col': l:match[3] + 0, \ 'lnum': l:match[2] + 0, \ 'text': l:match[5], diff --git a/test/handler/test_dafny_handler.vader b/test/handler/test_dafny_handler.vader index 674f691d..797d348e 100644 --- a/test/handler/test_dafny_handler.vader +++ b/test/handler/test_dafny_handler.vader @@ -8,14 +8,14 @@ Execute(The Dafny handler should parse output correctly): AssertEqual \ [ \ { - \ 'bufnr': 0, + \ 'filename': 'File.dfy', \ 'col': 45, \ 'lnum': 123, \ 'text': 'A precondition for this call might not hold.', \ 'type': 'E' \ }, \ { - \ 'bufnr': 0, + \ 'filename': 'File.dfy', \ 'col': 90, \ 'lnum': 678, \ 'text': 'This is the precondition that might not hold.', |