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

ShellDetect falls back to filetype if no hashbang (fixes #2886) #2906

Conversation

elebow
Copy link
Member

@elebow elebow commented Nov 23, 2019

Some files lack a hashbang line but still have an unambiguous filetype. For example, the file .zshrc has the filetype zsh.

Augment ale#handlers#sh#GetShellType to fall back to the filetype if no hashbang line can be found.

Also update the description of the shell linter, which does more than just bash now.

Fixes #2886.

Some files lack a hashbang line but still have an unambiguous filetype.
For example, the file `.zshrc` has the filetype `zsh`.

Augment ale#handlers#sh#GetShellType to fall back to the filetype if
no hashbang line can be found.
The shell linter does more than just bash.
@elebow elebow force-pushed the shelldetect-fall-back-to-filetype-if-no-hashbang branch from 445c6e6 to ece229c Compare November 23, 2019 05:34
@stale
Copy link

stale bot commented Aug 13, 2020

This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See :help ale-dev for information on writing tests.
If your pull request is good to merge, bother w0rp or another maintainer again, and get them to merge it.

@stale stale bot added the stale PRs a bot will close automatically label Aug 13, 2020
@elebow
Copy link
Member Author

elebow commented Aug 15, 2020

@w0rp, I believe this is still ready for review.

@stale stale bot removed the stale PRs a bot will close automatically label Aug 15, 2020
@w0rp w0rp merged commit eb86473 into dense-analysis:master Aug 17, 2020
@w0rp
Copy link
Member

w0rp commented Aug 17, 2020

Cheers! 🍻

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.

ALE is using bash -n to check the syntax of zsh scripts
2 participants