Fix indentation for the haml-lint file
This commit is contained in:
parent
f38ced1e4c
commit
7eb16836d0
@ -13,17 +13,17 @@ function! ale_linters#haml#hamllint#GetCommand(buffer) abort
|
|||||||
" See https://github.com/brigade/haml-lint/blob/master/lib/haml_lint/linter/rubocop.rb#L89
|
" See https://github.com/brigade/haml-lint/blob/master/lib/haml_lint/linter/rubocop.rb#L89
|
||||||
" HamlLint::Linter::RuboCop#rubocop_flags
|
" HamlLint::Linter::RuboCop#rubocop_flags
|
||||||
if !empty(l:rubocop_config_file_path)
|
if !empty(l:rubocop_config_file_path)
|
||||||
if ale#Has('win32')
|
if ale#Has('win32')
|
||||||
let l:prefix = 'set HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path) . ' &&'
|
let l:prefix = 'set HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path) . ' &&'
|
||||||
else
|
else
|
||||||
let l:prefix = 'HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path)
|
let l:prefix = 'HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return (!empty(l:prefix) ? l:prefix . ' ' : '')
|
return (!empty(l:prefix) ? l:prefix . ' ' : '')
|
||||||
\ . 'haml-lint'
|
\ . 'haml-lint'
|
||||||
\ . (!empty(l:hamllint_config_file_path) ? ' --config ' . ale#Escape(l:hamllint_config_file_path) : '')
|
\ . (!empty(l:hamllint_config_file_path) ? ' --config ' . ale#Escape(l:hamllint_config_file_path) : '')
|
||||||
\ . ' %t'
|
\ . ' %t'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#haml#hamllint#Handle(buffer, lines) abort
|
function! ale_linters#haml#hamllint#Handle(buffer, lines) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user