Files
ale/test/handler/test_bindzone_checkzone.vader
Nikita Korolev 2f4a866591
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
Add initial support for named-checkzone linter (#4961)
Co-authored-by: ds <ds@local>
2025-05-05 15:05:51 +09:00

27 lines
817 B
Plaintext

Before:
runtime ale_linters/bindzone/checkzone.vim
After:
call ale#linter#Reset()
Execute(The checkzone handler should handle basic warnings):
AssertEqual
\ [
\ {
\ 'lnum': 2,
\ 'type': 'E',
\ 'text': 'unknown RR type ''fasd''',
\ },
\ {
\ 'lnum': 0,
\ 'type': 'W',
\ 'text': '_some_srv._tcp.example.com/SRV ''some.example.com'' (out of zone) has no addresses records (A or AAAA)',
\ },
\ ],
\ ale_linters#bindzone#checkzone#Handle(1, [
\ 'zone example.com/IN: _some_srv._tcp.example.com/SRV ''some.example.com'' (out of zone) has no addresses records (A or AAAA)',
\ 'zone example.com/IN: loaded serial 2025050400',
\ 'zone example.com/IN: not loaded due to errors',
\ '/tmp/vb3wXsu/2/example.com:2: unknown RR type ''fasd''',
\ ])