SC2317 false positives on scripts run with source
and having return
as its last command
#3046
Open
1 of 4 tasks
For bugs
shellcheck --version
or "online"):For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
main.sh
sourced.sh
return
Here's what shellcheck currently says:
All lines following
source ...
are reported as unreachable.Here's what I wanted or expected to see:
The highlighted commands are reachable and should not be flagged.
The text was updated successfully, but these errors were encountered: