Update cairo linter to Cairo 1.0 (#4530)

* update cairo linter

* new cairo handler test

* add another handler instead of replacing
This commit is contained in:
0xHyoga
2023-06-27 11:44:20 +02:00
committed by GitHub
parent c0eff9f2f1
commit 5ab35a7a30
3 changed files with 77 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
Before:
runtime ale_linters/cairo/sierra.vim
After:
call ale#linter#Reset()
Execute(The starknet handler should handle error messages correctly):
AssertEqual
\ [
\ {
\ 'lnum': 16,
\ 'col': 25,
\ 'text': 'Plugin diagnostic: Type not found',
\ 'type': 'E',
\ },
\ ],
\ ale_linters#cairo#sierra#Handle(bufnr(''), [
\ 'error: Plugin diagnostic: Type not found',
\ ' --> lib.cairo:16:25',
\ ])