mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
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:
20
test/handler/test_sierra_handler.vader
Normal file
20
test/handler/test_sierra_handler.vader
Normal 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',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user