You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In xxx.sh line 3:
fnc() { echo; }
^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
For more information:
https://www.shellcheck.net/wiki/SC2317 -- Command appears to be unreachable...
It seems expected because of the use of declare -f. However, if the final exit command is commented out, the false positive goes away, which is entirely unexpected.
This was discovered while reviewing csutils/csmock#198 where the final exit command unexpectedly triggered 9 SC2317 false positives.
The text was updated successfully, but these errors were encountered:
The following minimal example:
... triggers a
SC2317
false positive:It seems expected because of the use of
declare -f
. However, if the finalexit
command is commented out, the false positive goes away, which is entirely unexpected.This was discovered while reviewing csutils/csmock#198 where the final
exit
command unexpectedly triggered 9SC2317
false positives.The text was updated successfully, but these errors were encountered: