diff options
author | Kevin Locke <kevin@kevinlocke.name> | 2019-02-10 09:00:55 -0700 |
---|---|---|
committer | Kevin Locke <kevin@kevinlocke.name> | 2019-02-10 09:00:55 -0700 |
commit | a0d4eb3699b2d3e7b7e5830950df10d84f370b8e (patch) | |
tree | b1fc2bd99b77bc0bbad70b54de71d6fdf6a10b44 /doc | |
parent | 7a48750610bbed164750a3f0fbf0fd9e88fa56c5 (diff) | |
download | ale-a0d4eb3699b2d3e7b7e5830950df10d84f370b8e.zip |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale-sh.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/ale-sh.txt b/doc/ale-sh.txt index 7557e522..64f59609 100644 --- a/doc/ale-sh.txt +++ b/doc/ale-sh.txt @@ -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| |