2017-07-16 11:35:43 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/erlang/syntaxerl.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
2017-08-19 14:10:03 +00:00
|
|
|
Execute (Handle SyntaxErl output):
|
2017-07-16 11:35:43 +00:00
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 42,
|
|
|
|
\ 'text': "syntax error before: ','",
|
|
|
|
\ 'type': 'E',
|
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 42,
|
|
|
|
\ 'text': 'function foo/0 is unused',
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ },
|
|
|
|
\ ],
|
2017-08-19 14:10:03 +00:00
|
|
|
\ ale_linters#erlang#syntaxerl#Handle(bufnr(''), [
|
2017-07-16 11:35:43 +00:00
|
|
|
\ "/tmp/v2wDixk/1/module.erl:42: syntax error before: ','",
|
|
|
|
\ '/tmp/v2wDixk/2/module.erl:42: warning: function foo/0 is unused',
|
|
|
|
\ ])
|