We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaef89e commit 1ab4384Copy full SHA for 1ab4384
1 file changed
test/runLint
@@ -9,7 +9,10 @@ gitgrep()
9
local filter_list
10
read -ra filter_list <<<"$filter_out"
11
pathspecs+=("${filter_list[@]/#/":!:"}")
12
- local out=$(git grep -I -P -n "$1" -- "${pathspecs[@]}")
+ local out=$(
13
+ git grep -I -P -n "$1" -- "${pathspecs[@]}" |
14
+ grep -Pv ':[[:space:]]*(#|""")' # Ignore bash and python comments
15
+ )
16
if [[ $out ]]; then
17
printf '***** %s\n' "$2"
18
printf '%s\n\n' "$out"
0 commit comments