From 1aea6a34ff22c9e79d20a018b4d46000c208caf2 Mon Sep 17 00:00:00 2001 From: Dmitri Vereshchagin Date: Sun, 16 Jul 2017 14:35:43 +0300 Subject: Add SyntaxErl linter These changes add [SyntaxErl][1] integration. SyntaxErl is a syntax checker tool for Erlang. [1]: https://github.com/ten0s/syntaxerl --- test/handler/test_syntaxerl_handler.vader | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/handler/test_syntaxerl_handler.vader (limited to 'test/handler/test_syntaxerl_handler.vader') diff --git a/test/handler/test_syntaxerl_handler.vader b/test/handler/test_syntaxerl_handler.vader new file mode 100644 index 00000000..1308ec84 --- /dev/null +++ b/test/handler/test_syntaxerl_handler.vader @@ -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', + \ ]) -- cgit v1.2.3