Merge pull request #474 from jordanandree/add-crystal-lint

Add linter for Crystal lang
This commit is contained in:
w0rp
2017-04-15 11:34:20 +01:00
committed by GitHub
3 changed files with 59 additions and 0 deletions

View 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()