mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-18 03:51:26 +08:00
Support ale_sh_shellcheck_dialect to set dialect
As discussed in w0rp/ale#1051, there are cases where it would be useful to be able to specify the dialect explicitly. This commit allows users to do so using the ale_sh_shellcheck_dialect variable. Fixes: w0rp/ale#1051 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
This commit is contained in:
1 parent
7a48750610
commit
a0d4eb3699
3 files changed
+30
-1
No files matched your search
@@ -61,6 +61,18 @@ g:ale_sh_shellcheck_options *g:ale_sh_shellcheck_options*
|
||||
let g:ale_sh_shellcheck_options = '-x'
|
||||
<
|
||||
|
||||
|
||||
g:ale_sh_shellcheck_dialect *g:ale_sh_shellcheck_dialect*
|
||||
*b:ale_sh_shellcheck_dialect*
|
||||
Type: |String|
|
||||
Default: `'auto'`
|
||||
|
||||
This variable specifies the shellcheck dialect (`-s` option). The value
|
||||
`'auto'` causes ALE to detect the dialect automatically, based on the shebang
|
||||
line (if present) or the value of `b:is_bash`, `b:is_sh`, or `b:is_kornshell`
|
||||
(set and used by |sh.vim|).
|
||||
|
||||
|
||||
g:ale_sh_shellcheck_exclusions *g:ale_sh_shellcheck_exclusions*
|
||||
*b:ale_sh_shellcheck_exclusions*
|
||||
Type: |String|
|
||||
|
||||
Reference in new issue
Block a user