Add support for zeek (#3952)

This commit is contained in:
Benjamin Bannier
2021-10-24 14:05:55 +02:00
committed by GitHub
parent da331acc9e
commit 92f08b5af2
7 changed files with 85 additions and 0 deletions

View 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"'
\ ])