mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-01 00:53:29 +08:00
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.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user