Merge pull request #774 from dmitrivereshchagin/syntaxerl-linter

Add SyntaxErl linter
This commit is contained in:
w0rp
2017-07-16 15:06:55 +01:00
committed by GitHub
5 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
Before:
runtime ale_linters/erlang/syntaxerl.vim
After:
call ale#linter#Reset()
Execute:
AssertEqual
\ [
\ {
\ 'lnum': 42,
\ 'text': "syntax error before: ','",
\ 'type': 'E',
\ },
\ {
\ 'lnum': 42,
\ 'text': 'function foo/0 is unused',
\ 'type': 'W',
\ },
\ ],
\ ale_linters#erlang#syntaxerl#Handle(42, [
\ "/tmp/v2wDixk/1/module.erl:42: syntax error before: ','",
\ '/tmp/v2wDixk/2/module.erl:42: warning: function foo/0 is unused',
\ ])