All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('erlang', 'dialyzer')
5 call ale#assert#TearDownLinterTest()
7 Execute(The default command should be correct.):
8 AssertLinter 'dialyzer',
9 \ ale#Escape('dialyzer')
10 \ . ' -n --plt ' . ale#Escape(expand('$HOME/.dialyzer_plt'))
11 \ . ' -Wunmatched_returns'
12 \ . ' -Werror_handling'
13 \ . ' -Wrace_conditions'
17 Execute(The command should accept configured executable.):
18 let b:ale_erlang_dialyzer_executable = '/usr/bin/dialyzer'
19 AssertLinter '/usr/bin/dialyzer',
20 \ ale#Escape('/usr/bin/dialyzer')
21 \ . ' -n --plt ' . ale#Escape(expand('$HOME/.dialyzer_plt'))
22 \ . ' -Wunmatched_returns'
23 \ . ' -Werror_handling'
24 \ . ' -Wrace_conditions'
28 Execute(The command should accept configured options.):
29 let b:ale_erlang_dialyzer_options = '-r ' . expand('$HOME')
30 AssertLinter 'dialyzer',
31 \ ale#Escape('dialyzer')
32 \ . ' -n --plt ' . ale#Escape(expand('$HOME/.dialyzer_plt'))
33 \ . ' -r ' . expand('$HOME')
36 Execute(The command should accept configured PLT file.):
37 let b:ale_erlang_dialyzer_plt_file = 'custom-plt'
38 AssertLinter 'dialyzer',
39 \ ale#Escape('dialyzer')
40 \ . ' -n --plt ' . ale#Escape(expand('custom-plt'))
41 \ . ' -Wunmatched_returns'
42 \ . ' -Werror_handling'
43 \ . ' -Wrace_conditions'