vet: fix option order when invoking grep (#7421)

This commit is contained in:
Antoine Tollenaere 2024-07-17 17:57:11 +02:00 committed by GitHub
parent b1979b6617
commit 61aa9491e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.