Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
w0rp merged 2 commits intodense-analysis:masterdense-analysis/ale:masterfrom
elebow:shelldetect-fall-back-to-filetype-if-no-hashbangelebow/ale:shelldetect-fall-back-to-filetype-if-no-hashbangCopy head branch name to clipboard
Aug 17, 2020
Merged

ShellDetect falls back to filetype if no hashbang (fixes #2886)#2906
w0rp merged 2 commits intodense-analysis:masterdense-analysis/ale:masterfrom
elebow:shelldetect-fall-back-to-filetype-if-no-hashbangelebow/ale:shelldetect-fall-back-to-filetype-if-no-hashbangCopy head branch name to clipboard

Conversation

@elebow
Copy link
Copy Markdown
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
Copy Markdown

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/Issues no longer valid label Aug 13, 2020
@elebow
Copy link
Copy Markdown
Member Author

elebow commented Aug 15, 2020

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

@stale stale Bot removed the stale PRs/Issues no longer valid label Aug 15, 2020
@w0rp w0rp merged commit eb86473 into dense-analysis:master Aug 17, 2020
@w0rp
Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.