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

need shellcheck -x so that it follows sources but how to pass parameters to shellcheck #65

Closed
richtong opened this issue Aug 31, 2022 · 2 comments

Comments

@richtong
Copy link

OK, I can't quite figure this out, I went to the coc-settings.json and triggered command completion as suggested, but i don't see a way to pass the -x parameter so things like:

source $SCRIPT_DIR/include.sh

do not generate a SC1091 error. With shellcheck 0.8, it will strip out the variable and just ry ./include.sh but -x needs to specified to turn on source searching.

@josa42
Copy link
Owner

josa42 commented Mar 6, 2023

You should be able to set bashIde.shellcheckArguments.

coc-sh/package.json

Lines 84 to 88 in abf7ab5

"bashIde.shellcheckArguments": {
"type": "string",
"default": "",
"description": "Additional ShellCheck arguments. Note that we already add the following arguments: --shell, --format, --external-sources."
}

@josa42 josa42 closed this as completed Mar 6, 2023
@richtong
Copy link
Author

richtong commented Mar 9, 2023 via email

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

2 participants