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

Auto-link # shellcheck source= directives #638

Open
felipecrs opened this issue Jun 27, 2022 · 5 comments
Open

Auto-link # shellcheck source= directives #638

felipecrs opened this issue Jun 27, 2022 · 5 comments

Comments

@felipecrs
Copy link
Collaborator

Like this one:

# shellcheck source=./lib/var.bash

The ./lib/var.bash could become a link for the actual file.

@DevDorrejo
Copy link

Hello,
Using this method still showing the recommendaton.
image

@felipecrs
Copy link
Collaborator Author

Have you enabled external-sources=true in your .shellcheckrc or added -x to the args in the settings?

@DevDorrejo
Copy link

DevDorrejo commented Aug 30, 2022

Have you enabled external-sources=true in your .shellcheckrc or added -x to the args in the settings?

Thanks adding -x solve the warning., didn't know how to add the arg in the extersion (kind of new with vscode)

@felipecrs
Copy link
Collaborator Author

felipecrs commented Aug 30, 2022

Just to mention, if you have a repository for your script, prefer adding the .shellcheckrc file instead.

@DevDorrejo
Copy link

DevDorrejo commented Aug 30, 2022

Just to mention, if you have a repository for your script, prefer adding the .shellcheckrc file instead.

Understand, and thanks for the tips.

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