Skip to content

Commit

Permalink
Disable linter false positives
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sio committed May 15, 2024
1 parent 014d8aa commit 962953d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ _bcpp() {
then
type _bcpp_filedir_original &>/dev/null || \
eval "_bcpp_filedir_original() $_bcpp_filedir_original_code"

# shellcheck disable=SC2329 # invoked from outside of this script
_filedir() {
_bcpp_filedir_original "$@"
[ "${#COMPREPLY[@]}" -eq 0 ] && _bcpp_complete "$@"
Expand All @@ -333,6 +335,8 @@ _bcpp() {
then
type _bcpp_filedir_xspec_original &>/dev/null || \
eval "_bcpp_filedir_xspec_original() $_bcpp_filedir_xspec_original_code"

# shellcheck disable=SC2329 # invoked from outside of this script
_filedir_xspec() {
_bcpp_filedir_xspec_original "$@"
[ "${#COMPREPLY[@]}" -eq 0 ] && _bcpp_complete "$@"
Expand Down

0 comments on commit 962953d

Please sign in to comment.