diff options
author | Justin Howard <jmhoward0@gmail.com> | 2018-11-04 02:35:21 -0800 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-11-04 10:35:21 +0000 |
commit | 88d328739f73c98794f05fb624edf1cd4b147abe (patch) | |
tree | 9a4cae6f4d727289d9355de0dbb561996a5268df /test/command_callback/test_haml_hamllint_command_callback.vader | |
parent | 9171791646d14d2c58ec87377e711e1116d995e5 (diff) | |
download | ale-88d328739f73c98794f05fb624edf1cd4b147abe.zip |
Allow configuration of hamllint executable (#2048)
* Allow configuration of hamllint executable
The hamllint executable was hard-coded, preventing it from being
overridden. Fix the executable to be dynamic to allow custom executable
paths.
Diffstat (limited to 'test/command_callback/test_haml_hamllint_command_callback.vader')
-rw-r--r-- | test/command_callback/test_haml_hamllint_command_callback.vader | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/command_callback/test_haml_hamllint_command_callback.vader b/test/command_callback/test_haml_hamllint_command_callback.vader index a59446ca..694b21d3 100644 --- a/test/command_callback/test_haml_hamllint_command_callback.vader +++ b/test/command_callback/test_haml_hamllint_command_callback.vader @@ -35,3 +35,7 @@ Execute(The command should include a .rubocop.yml and a .haml-lint if both are f AssertLinter 'haml-lint', \ ale#Env('HAML_LINT_RUBOCOP_CONF', b:conf_rubocop) \ . 'haml-lint --config ' . ale#Escape(b:conf_hamllint) . ' %t' + +Execute(The executable can be overridden): + let b:ale_haml_hamllint_executable = 'bin/haml-lint' + AssertLinter 'bin/haml-lint', 'bin/haml-lint %t' |