summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-25 23:07:38 +0100
committerw0rp <devw0rp@gmail.com>2017-10-25 23:07:38 +0100
commit7eb16836d09f3f847165b1e48fc020ecff2e715e (patch)
treebd697a6d6985cd428e12fe0c50e4fdcf8dedbaf0 /ale_linters
parentf38ced1e4ccf8a462dd42999614966dafae6349f (diff)
downloadale-7eb16836d09f3f847165b1e48fc020ecff2e715e.zip
Fix indentation for the haml-lint file
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/haml/hamllint.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/ale_linters/haml/hamllint.vim b/ale_linters/haml/hamllint.vim
index e56da090..d6633599 100644
--- a/ale_linters/haml/hamllint.vim
+++ b/ale_linters/haml/hamllint.vim
@@ -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
" HamlLint::Linter::RuboCop#rubocop_flags
if !empty(l:rubocop_config_file_path)
- if ale#Has('win32')
- let l:prefix = 'set HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path) . ' &&'
- else
- let l:prefix = 'HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path)
- endif
+ if ale#Has('win32')
+ let l:prefix = 'set HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path) . ' &&'
+ else
+ let l:prefix = 'HAML_LINT_RUBOCOP_CONF=' . ale#Escape(l:rubocop_config_file_path)
+ endif
endif
return (!empty(l:prefix) ? l:prefix . ' ' : '')
- \ . 'haml-lint'
- \ . (!empty(l:hamllint_config_file_path) ? ' --config ' . ale#Escape(l:hamllint_config_file_path) : '')
- \ . ' %t'
+ \ . 'haml-lint'
+ \ . (!empty(l:hamllint_config_file_path) ? ' --config ' . ale#Escape(l:hamllint_config_file_path) : '')
+ \ . ' %t'
endfunction
function! ale_linters#haml#hamllint#Handle(buffer, lines) abort