From 2c8ee405662d03193510f57ab44391d20628999c Mon Sep 17 00:00:00 2001 From: cornfeedhobo Date: Mon, 1 Nov 2021 22:27:44 -0500 Subject: [PATCH] Fix linting errors that snuck in. --- completion/available/git.completion.bash | 1 + plugins/available/autojump.plugin.bash | 1 + plugins/available/base.plugin.bash | 3 +-- vendor/init.d/preexec.bash | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/completion/available/git.completion.bash b/completion/available/git.completion.bash index 31b77fa3..d6fd3265 100644 --- a/completion/available/git.completion.bash +++ b/completion/available/git.completion.bash @@ -39,4 +39,5 @@ done if [[ "${_git_bash_completion_found}" == false ]]; then _log_warning "no completion files found - please try enabling the 'system' completion instead." fi +# shellcheck disable=SC2154 # ignore unknown unset "${!_git_bash_completion@}" diff --git a/plugins/available/autojump.plugin.bash b/plugins/available/autojump.plugin.bash index dc8fbbb4..89694100 100644 --- a/plugins/available/autojump.plugin.bash +++ b/plugins/available/autojump.plugin.bash @@ -4,6 +4,7 @@ about-plugin 'Autojump configuration, see https://github.com/wting/autojump for # Only supports the Homebrew variant, Debian and Arch at the moment. # Feel free to provide a PR to support other install locations +# shellcheck disable=1090 if _bash_it_homebrew_check && [[ -s "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh" ]]; then source "${BASH_IT_HOMEBREW_PREFIX}/etc/profile.d/autojump.sh" elif _command_exists dpkg && dpkg -s autojump &> /dev/null; then diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index 6490ab88..a4ce0c39 100644 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -121,8 +121,7 @@ function usage() { } # shellcheck disable=SC2144 # the glob matches only one file -if [[ ! -e "${BASH_IT?}/plugins/enabled/todo.plugin.bash" && - ! -e "${BASH_IT?}/plugins/enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR-}todo.plugin.bash" ]]; then +if [[ ! -e "${BASH_IT?}/plugins/enabled/todo.plugin.bash" && ! -e "${BASH_IT?}/plugins/enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR-}todo.plugin.bash" ]]; then # if user has installed todo plugin, skip this... function t() { about 'one thing todo' diff --git a/vendor/init.d/preexec.bash b/vendor/init.d/preexec.bash index 6cfa7b0a..25596dd6 100644 --- a/vendor/init.d/preexec.bash +++ b/vendor/init.d/preexec.bash @@ -8,7 +8,7 @@ # Disable immediate `$PROMPT_COMMAND` modification __bp_delay_install="delayed" -# shellcheck source-path=SCRIPTDIR/../github.com/rcaloras/bash-preexec +# shellcheck source=SCRIPTDIR/../github.com/rcaloras/bash-preexec source "${BASH_IT?}/vendor/github.com/rcaloras/bash-preexec/bash-preexec.sh" # Block damanaging user's `$HISTCONTROL`