diff options
author | Jason Franklin <jason.franklin@quoininc.com> | 2020-11-02 10:50:14 -0500 |
---|---|---|
committer | Jason Franklin <jason.franklin@quoininc.com> | 2020-11-02 10:59:16 -0500 |
commit | 31b7a2de41d7bfccfd80a563bf3920258230cdc3 (patch) | |
tree | 4d92ec835f80a3481339671978dc332ec8c360c3 /.github/ISSUE_TEMPLATE | |
parent | 73632312c2519d7925dc57e5abcd0eacc5f1e55f (diff) | |
download | ale-31b7a2de41d7bfccfd80a563bf3920258230cdc3.zip |
Move the test for buffer-local variables
The "ale#handlers#sh#GetShellType()" function currently falls back
to the file type without checking for buffer-local variables first.
This causes the function to return "sh" even when a script is known
by Vim to be a script of a more specific type (e.g., "bash").
The "ale#handlers#shellcheck#GetDialectArgument()" function then
erroneously uses this type even though a more fitting type should be
used instead. Files without a "#!" line will be of type "sh" even
though they may have a ".bash" suffix.
This commit fixes the problem by checking for buffer-local shell
type variables (set by Vim) before falling back to the file type.
Diffstat (limited to '.github/ISSUE_TEMPLATE')
0 files changed, 0 insertions, 0 deletions