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

Option to specify shell iff shebang and in-file directives are missing #3023

Open
2 tasks done
sparr opened this issue Jul 16, 2024 · 0 comments
Open
2 tasks done

Option to specify shell iff shebang and in-file directives are missing #3023

sparr opened this issue Jul 16, 2024 · 0 comments

Comments

@sparr
Copy link

sparr commented Jul 16, 2024

For new checks and feature suggestions

I have some files with no shebang and some with. I would like to run the same shellcheck command across all of them, with the dialect set by the shebang in files with one, and to a default otherwise. Unfortunately shellcheck -s dash overrides the shebang in files that have one. I'd like a "soft" equivalent to -s that only applies of there's no shebang or #shellcheck shell= directive in the file.

My use case is testing a bunch of files with a script, without having to code my own shebang-presence checker.

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

No branches or pull requests

1 participant