Skip to content

Commit 6a51d0d

Browse files
committed
change lint rule to not to enforce that the grep returns nothing
1 parent 689ae5b commit 6a51d0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/vet.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ not git grep "\(import \|^\s*\)\"google.golang.org/grpc/interop/grpc_testing" --
7070
git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' ':(exclude)*.pb.go' | not grep -v 'pb "\|grpc "'
7171

7272
# - Ensure all context usages are done with timeout.
73-
git grep -e 'context.Background()' --or -e 'context.TODO()' -- "*_test.go" | not grep -v "benchmark/primitives/context_test.go" | not grep -v "credentials/google" | not grep -v "internal/transport/" | not grep -v "xds/internal/" | not grep -v "security/advancedtls" | not grep -v 'context.WithTimeout(' | not grep -v 'context.WithCancel('
74-
73+
not git grep -e 'context.Background()' --or -e 'context.TODO()' -- "*_test.go" | grep -v "benchmark/primitives/context_test.go" | grep -v "credential
74+
s/google" | grep -v "internal/transport/" | grep -v "xds/internal/" | grep -v "security/advancedtls" | grep -v 'context.WithTimeout(' | grep -v 'contex
75+
t.WithCancel('
7576

7677
misspell -error .
7778

0 commit comments

Comments
 (0)