feat(erlang/dialyzer): add custom options passing

This commit is contained in:
pinicarus
2020-09-30 22:44:19 +02:00
parent 96dcbd1f20
commit ac3c0c093a
3 changed files with 28 additions and 5 deletions

View File

@@ -25,6 +25,13 @@ Execute(The command should accept configured executable.):
\ . ' -Wunderspecs'
\ . ' %s'
Execute(The command should accept configured options.):
let b:ale_erlang_dialyzer_options = '-r ' . expand('$HOME')
AssertLinter 'dialyzer',
\ ale#Escape('dialyzer')
\ . ' -n --plt ' . ale#Escape(expand('$HOME/.dialyzer_plt'))
\ . ' -r ' . expand('$HOME')
Execute(The command should accept configured PLT file.):
let b:ale_erlang_dialyzer_plt_file = 'custom-plt'
AssertLinter 'dialyzer',