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

SCRIPTDIR does not work #30

Open
indevsa opened this issue Jun 7, 2023 · 1 comment
Open

SCRIPTDIR does not work #30

indevsa opened this issue Jun 7, 2023 · 1 comment

Comments

@indevsa
Copy link

indevsa commented Jun 7, 2023

Shellcheck's supports the SCRIPTDIR special value in its source and source-path to find sourced files in shell scripts. this doesn't seem to work in SublimeLinter-shellcheck.

As far as I can tell this is because the plugin passes the contents of a file to shellcheck's stdin, and not the path itself.

This could be fixed either by passing the file path itself, or by using shellcheck's -P/--source-path option.

@kaste
Copy link
Contributor

kaste commented Jun 7, 2023

I don't know if we should bake this in, depends on how long these flags are around. ... but you can probably do this manually already by using the argshttps://www.sublimelinter.com/en/latest/linter_settings.html#args setting. For example "args": ["source=$file"]" or source-path=$file_path should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants