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

SC1090: allow define alternative source functions #3124

Open
robstoll opened this issue Jan 16, 2025 · 0 comments
Open

SC1090: allow define alternative source functions #3124

robstoll opened this issue Jan 16, 2025 · 0 comments

Comments

@robstoll
Copy link

Similar to #2038 but simpler. Consider the following:

#!/usr/bin/env bash
function sourceOrDie() {
  source "$@" || exit 1
}
# shellcheck will not follow the sourced file
sourceOrDie "foo.sh"

I.e. I only need a way to tell shellcheck aliases of source (although they have some additional behaviour but for the analysis this doesn't matter).

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

1 participant