summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-09-05 19:06:07 +0100
committerw0rp <devw0rp@gmail.com>2020-09-05 19:06:07 +0100
commit152b2cb6910d9173d75a195c5a185b7f3f8aa696 (patch)
treebcb4e5fffe6f1234124c880a59bd31292b2d8bc0 /ale_linters
parent844febb9fbfb66bb13dd652d958495e47f0bd408 (diff)
downloadale-152b2cb6910d9173d75a195c5a185b7f3f8aa696.zip
Clean up embertemplatelint code
Alias ember-template-lint to embertemplatelint so users can use either string to enable the linter.
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/handlebars/embertemplatelint.vim13
1 files changed, 7 insertions, 6 deletions
diff --git a/ale_linters/handlebars/embertemplatelint.vim b/ale_linters/handlebars/embertemplatelint.vim
index 31d65b70..bd4d1d31 100644
--- a/ale_linters/handlebars/embertemplatelint.vim
+++ b/ale_linters/handlebars/embertemplatelint.vim
@@ -19,11 +19,11 @@ endfunction
function! ale_linters#handlebars#embertemplatelint#GetCommandWithVersionCheck(buffer) abort
return ale#semver#RunWithVersionCheck(
- \ a:buffer,
- \ ale_linters#handlebars#embertemplatelint#GetExecutable(a:buffer),
- \ '%e --version',
- \ function('ale_linters#handlebars#embertemplatelint#GetCommand'),
- \ )
+ \ a:buffer,
+ \ ale_linters#handlebars#embertemplatelint#GetExecutable(a:buffer),
+ \ '%e --version',
+ \ function('ale_linters#handlebars#embertemplatelint#GetCommand'),
+ \)
endfunction
function! ale_linters#handlebars#embertemplatelint#Handle(buffer, lines) abort
@@ -52,7 +52,8 @@ function! ale_linters#handlebars#embertemplatelint#Handle(buffer, lines) abort
endfunction
call ale#linter#Define('handlebars', {
-\ 'name': 'ember-template-lint',
+\ 'name': 'embertemplatelint',
+\ 'aliases': ['ember-template-lint'],
\ 'executable': function('ale_linters#handlebars#embertemplatelint#GetExecutable'),
\ 'command': function('ale_linters#handlebars#embertemplatelint#GetCommandWithVersionCheck'),
\ 'callback': 'ale_linters#handlebars#embertemplatelint#Handle',