diff --git a/completions-core/ccze.bash b/completions-core/ccze.bash index 34f06639206..337d7f3b827 100644 --- a/completions-core/ccze.bash +++ b/completions-core/ccze.bash @@ -29,8 +29,8 @@ _comp_cmd_ccze() return ;; --plugin | -${noargopts}p) - _comp_compgen_split -- "$("$1" --list-plugins | command \ - sed -ne 's/^\([a-z0-9]\{1,\}\)[[:space:]]\{1,\}|.*/\1/p')" + _comp_compgen_split -- "$("$1" --list-plugins | + command sed -ne 's/^\([a-z0-9]\{1,\}\)[[:space:]]\{1,\}|.*/\1/p')" return ;; esac diff --git a/test/runLint b/test/runLint index 1e422a766bc..184f3d27c17 100755 --- a/test/runLint +++ b/test/runLint @@ -3,8 +3,8 @@ set -u gitgrep() { - local pathspecs=('bash_completion' 'completions-fallback/' - 'completions-core/' 'test/' 'bash_completion.d/' ':!:test/runLint' + local pathspecs=('bash_completion' 'completions-fallback/*.bash' + 'completions-core/*.bash' 'test/' 'bash_completion.d/' ':!:test/runLint' ':!:test/docker/' ':!:test/test-cmd-list.txt') local filter_list read -ra filter_list <<<"$filter_out" @@ -72,9 +72,6 @@ gitgrep '@\([^()|$]+\)' \ #------------------------------------------------------------------------------ # Bash pitfalls/styles/compatibilities (which are not detected by shellcheck) -filter_out='test/ bash_completion.sh.in' gitgrep ' \[ ' \ - 'use [[ ]] instead of [ ]' - gitgrep "$cmdstart"'unset [^-]' 'Explicitly specify "unset -v/-f"' filter_out="test/config/bashrc" gitgrep "$cmdstart"'((set|shopt)\s+[+-][a-z]+\s+posix\b|(local\s+)?POSIXLY_CORRECT\b)' \