Skip to content

Commit 962953d

Browse files
committed
Disable linter false positives
Shellcheck complained that "this function is never invoked" (https://www.shellcheck.net/wiki/SC2329). It's ok, it wasn't meant to be invoked from here
1 parent 014d8aa commit 962953d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bash_completion

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ _bcpp() {
321321
then
322322
type _bcpp_filedir_original &>/dev/null || \
323323
eval "_bcpp_filedir_original() $_bcpp_filedir_original_code"
324+
325+
# shellcheck disable=SC2329 # invoked from outside of this script
324326
_filedir() {
325327
_bcpp_filedir_original "$@"
326328
[ "${#COMPREPLY[@]}" -eq 0 ] && _bcpp_complete "$@"
@@ -333,6 +335,8 @@ _bcpp() {
333335
then
334336
type _bcpp_filedir_xspec_original &>/dev/null || \
335337
eval "_bcpp_filedir_xspec_original() $_bcpp_filedir_xspec_original_code"
338+
339+
# shellcheck disable=SC2329 # invoked from outside of this script
336340
_filedir_xspec() {
337341
_bcpp_filedir_xspec_original "$@"
338342
[ "${#COMPREPLY[@]}" -eq 0 ] && _bcpp_complete "$@"

0 commit comments

Comments
 (0)