Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change order of detection of shellcheck dialect #1

Conversation

codemedic
Copy link

In a situation where the filetype can be wrong (example: something.sh
which is written in bash dialect) and has no hash-bang (since it is
meant to be sourced) then the override specified within the script will
be ignored.

It probably is the most right thing to do if the script author has added
a specific directive; it should trump everything else.

NB: Sorry, I am a newbie to vim scripting. Couldn't figure out how to run tests.

In a situation where the filetype can be wrong (example: something.sh
which is written in bash dialect) and has no hash-bang (since it is
meant to be sourced) then the override specified within the script will
be ignored.

It probably is the most right thing to do if the script author has added
a specific directive; it should trump everything else.
@hsanson hsanson closed this Sep 23, 2020
@hsanson hsanson reopened this Sep 23, 2020
@hsanson hsanson merged commit 00a71a7 into hsanson:3103-add-shellcheck-shell-directive-detection Sep 23, 2020
@hsanson
Copy link
Owner

hsanson commented Sep 23, 2020

@codemedic makes sense, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants