summaryrefslogtreecommitdiff
path: root/ale_linters/bats
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/bats')
-rw-r--r--ale_linters/bats/shellcheck.vim11
1 files changed, 2 insertions, 9 deletions
diff --git a/ale_linters/bats/shellcheck.vim b/ale_linters/bats/shellcheck.vim
index b5a1184b..5c2a0ea9 100644
--- a/ale_linters/bats/shellcheck.vim
+++ b/ale_linters/bats/shellcheck.vim
@@ -1,11 +1,4 @@
" Author: Ian2020 <https://github.com/Ian2020>
-" Description: This file adds support for using the shellcheck linter with
-" bats scripts. Heavily inspired by/copied from work by w0rp on shellcheck
-" for sh files.
+" Description: shellcheck linter for bats scripts.
-call ale#linter#Define('bats', {
-\ 'name': 'shellcheck',
-\ 'executable': function('ale#handlers#shellcheck#GetExecutable'),
-\ 'command': function('ale#handlers#shellcheck#GetCommand'),
-\ 'callback': 'ale#handlers#shellcheck#Handle',
-\})
+call ale#handlers#shellcheck#DefineLinter('bats')