We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Shellcheck fails with error SC2148 on .envrc files (missing shebang).
SC2148
However, .envrc-files are https://github.com/direnv/direnv files, and according to the documentation these are always passed through bash (https://github.com/direnv/direnv?tab=readme-ov-file#how-it-works). It seems like shellcheck should always parse these files as bash, instead of having users add a shebang line only for the sake of shellcheck.
Example .envrc:
if has nix; then use flake . fi
I'm fine with trying to write a patch to fix this, but I would like some input on whether others also consider this a bug.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Shellcheck fails with error
SC2148
on .envrc files (missing shebang).However, .envrc-files are https://github.com/direnv/direnv files, and according to the documentation these are always passed through bash (https://github.com/direnv/direnv?tab=readme-ov-file#how-it-works). It seems like shellcheck should always parse these files as bash, instead of having users add a shebang line only for the sake of shellcheck.
Example .envrc:
I'm fine with trying to write a patch to fix this, but I would like some input on whether others also consider this a bug.
The text was updated successfully, but these errors were encountered: