identify script file to be linted by shebang alone
See original GitHub issueIn atom I use a shellcheck linter extension and it can identify a bash shell file to lint solely based on the existence of the shebang without need of a common extension like .sh
. https://atom.io/packages/linter-shellcheck
As a matter of organization I don’t always want to use the .sh extension on my script files but always include the shebang.
Does the extension support this? If so how do I enable? If not it should be added (I might be the one to write a PR if I can get some help).
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
Should I put #! (shebang) in Python scripts, and what form ...
If it is a stand-alone script this answer is to the point. If the file is just an entry point of a larger...
Read more >Find all scripts with a given shebang line with find & sed
I want to find out all scripts with a specific shebang line. Specifically, I want all files that match the following criteria:.
Read more >Bad interpreter error when executing shell script with the ...
The shebang line reads #!/bin/bash. I used the command "export PATH=$PATH:repos/utilities " to direct to the directory storing these scripts, ...
Read more >Shebang length exceeded in pip executable #1773
A work-around for this problem is to not run pip directly, but run the python interpreter and pass the pip script to python...
Read more >Shebang (Unix)
In computing, a shebang is the character sequence consisting of the characters number sign and exclamation mark ( #!) at the beginning of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is because files named
env
are recognized as “dotenv” files. You can manually set the association though:Consider opening an issue in the vscode repo instead. The shellscript language association comes from there. Something like:
“Shebang should take precedence over filename for files named env” or something like that.
Feel free to reference this issue once you open the new one. I’ll support you with a 👍.