mirror of
https://github.com/dense-analysis/ale
synced 2024-12-30 01:52:13 +00:00
3b7c86e401
* Add support for Erlang dialyzer * Add an option to specify rebar3 profile In doing so, the use of the `**` wildcard becomes unnecessary.
28 lines
734 B
Plaintext
28 lines
734 B
Plaintext
Before:
|
|
runtime ale_linters/erlang/dialyzer.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute(The dialyzer handler should handle error messages.):
|
|
AssertEqual
|
|
\[
|
|
\ {
|
|
\ 'lnum': 3,
|
|
\ 'lcol': 0,
|
|
\ 'text': 'Callback info about the provider behaviour is not available',
|
|
\ 'type': 'W'
|
|
\ }
|
|
\],
|
|
\ ale_linters#erlang#dialyzer#Handle(bufnr(''), ['erl_tidy_prv_fmt.erl:3: Callback info about the provider behaviour is not available'])
|
|
|
|
Execute(The dialyzer handler should handle empty file.):
|
|
AssertEqual
|
|
\[],
|
|
\ ale_linters#erlang#dialyzer#Handle(bufnr(''), [])
|
|
|
|
Execute(The dialyzer handler should handle empty lines.):
|
|
AssertEqual
|
|
\[],
|
|
\ ale_linters#erlang#dialyzer#Handle(bufnr(''), [''])
|