mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-16 01:07:06 +08:00
Merge pull request #474 from jordanandree/add-crystal-lint
Add linter for Crystal lang
This commit is contained in:
18
test/handler/test_crystal_handler.vader
Normal file
18
test/handler/test_crystal_handler.vader
Normal file
@@ -0,0 +1,18 @@
|
||||
Execute(The crystal handler should parse lines correctly and add the column if it can):
|
||||
runtime ale_linters/crystal/crystal.vim
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 2,
|
||||
\ 'bufnr': 255,
|
||||
\ 'col': 1,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'unexpected token: EOF'
|
||||
\ }
|
||||
\ ],
|
||||
\ ale_linters#crystal#crystal#Handle(255, [
|
||||
\ '[{"file":"/tmp/test.cr","line":2,"column":1,"size":null,"message":"unexpected token: EOF"}]'
|
||||
\ ])
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
Reference in New Issue
Block a user