1aea6a34ff
These changes add [SyntaxErl][1] integration. SyntaxErl is a syntax checker tool for Erlang. [1]: https://github.com/ten0s/syntaxerl
25 lines
516 B
Plaintext
25 lines
516 B
Plaintext
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',
|
|
\ ])
|