Use a function to define shellcheck linters and vars needed, fixes tests

This commit is contained in:
Ian2020 committed 2020-05-08 12:55:54 +01:00
1 parent 65bea1a5cb
commit ca97f32258
4 files changed
+27 -40

No files matched your search

+2 -8
View File
@@ -1,10 +1,4 @@
" Author: w0rp <devw0rp@gmail.com>
" Description: This file adds support for using the shellcheck linter with
" shell scripts.
" Description: shellcheck linter for shell scripts.
call ale#linter#Define('sh', {
\ 'name': 'shellcheck',
\ 'executable': function('ale#handlers#shellcheck#GetExecutable'),
\ 'command': function('ale#handlers#shellcheck#GetCommand'),
\ 'callback': 'ale#handlers#shellcheck#Handle',
\})
call ale#handlers#shellcheck#DefineLinter('sh')