mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-16 01:07:06 +08:00
Add support for zeek (#3952)
This commit is contained in:
17
test/handler/test_zeek_handler.vader
Normal file
17
test/handler/test_zeek_handler.vader
Normal file
@@ -0,0 +1,17 @@
|
||||
Before:
|
||||
runtime ale_linters/zeek/zeek.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The zeek handler should parse input correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 2,
|
||||
\ 'text': 'unknown identifier bar, at or near "bar"'
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#zeek#zeek#HandleErrors(bufnr(''), [
|
||||
\ 'error in /tmp/foo.zeek, line 2: unknown identifier bar, at or near "bar"'
|
||||
\ ])
|
||||
Reference in New Issue
Block a user