-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Labels
enhancementNew feature or requestNew feature or requestpriority ⭐️Triaged and deemed a priorityTriaged and deemed a priority
Description
What is the problem this feature will solve?
The lsp currently handles constructs like
# foo/test.
# shellcheck source=bar/baz.sh
source $someDir/baz.sh
# shellcheck source-path=SCRIPTDIR
source ./bar/baz.sh
What's missing is paths containing SCRIPTDIR, i.e.
# shellcheck source=SCRIPTDIR/bar/baz.sh
source baz.sh
# shellcheck source-path=SCRIPTDIR/bar/
What is the feature you are proposing to solve the problem?
Shellcheck directives should handle SCRIPTDIR
in paths, e.g. SCRIPTDIR/foo.sh
or SCRIPTDIR/../someFolder/
What alternatives have you considered?
Changing the paths in the source statements, but the analyzed files will be copied to different locations depending on runtime factors.
nozomiishii, timoteicampian, Frederick888 and kaharlichenko
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriority ⭐️Triaged and deemed a priorityTriaged and deemed a priority