2020-04-24 10:39:45 +00:00
|
|
|
" 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.
|
|
|
|
|
|
|
|
call ale#linter#Define('bats', {
|
|
|
|
\ 'name': 'shellcheck',
|
2020-04-28 16:46:15 +00:00
|
|
|
\ 'executable': function('ale#handlers#shellcheck#GetExecutable'),
|
|
|
|
\ 'command': function('ale#handlers#shellcheck#GetCommand'),
|
|
|
|
\ 'callback': 'ale#handlers#shellcheck#Handle',
|
2020-04-24 10:39:45 +00:00
|
|
|
\})
|