Skip to content

Commit

Permalink
vet: fix option order when invoking grep (#7421)
Browse files Browse the repository at this point in the history
  • Loading branch information
atollena authored Jul 17, 2024
1 parent b1979b6 commit 61aa949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ XXXXX PleaseIgnoreUnused'

# Ignore a false positive when operands have side affectes.
# TODO(https://github.com/dominikh/go-tools/issues/54): Remove this once the issue is fixed in staticcheck.
noret_grep "(SA4000)" "${SC_OUT}" | not grep -ev "crl.go:\d*:\d*: identical expressions on the left and right side of the '||' operator (SA4000)"
noret_grep "(SA4000)" "${SC_OUT}" | not grep -v -e "crl.go:[0-9]\+:[0-9]\+: identical expressions on the left and right side of the '||' operator (SA4000)"

# Only ignore the following deprecated types/fields/functions and exclude
# generated code.
Expand Down

0 comments on commit 61aa949

Please sign in to comment.