add crystal lint

- invokes via `crystal build` command without codegen
- adds vader tests
This commit is contained in:
jordanandree
2017-04-13 21:19:53 -04:00
parent 349b31104a
commit abdfaaf84f
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()