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 authored and GitHub committed 2023-06-27 18:44:20 +09:00
1 parent c0eff9f2f1
commit 5ab35a7a30
3 files changed
+77 -1

No files matched your search

+20
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',
\ ])