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

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

No files matched your search

+18
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()