Skip to content

Commit 953f4af

Browse files
committed
fix vet
1 parent d71ffd8 commit 953f4af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vet.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ not git grep -l 'x/net/context' -- "*.go"
8888
git grep -l '"math/rand"' -- "*.go" 2>&1 | not grep -v '^examples\|^interop/stress\|grpcrand\|^benchmark\|wrr_test'
8989

9090
# - Do not use "interface{}"; use "any" instead.
91-
git grep -l 'interface{}' -- "*.go" 2>&1 | not grep -v '\.pb\.go\|protoc-gen-go-grpc'
91+
git grep -l 'interface{}' -- "*.go" 2>&1 | not grep -v '\.pb\.go\|protoc-gen-go-grpc\|grpc_testing_not_regenerate'
9292

9393
# - Do not call grpclog directly. Use grpclog.Component instead.
9494
git grep -l -e 'grpclog.I' --or -e 'grpclog.W' --or -e 'grpclog.E' --or -e 'grpclog.F' --or -e 'grpclog.V' -- "*.go" | not grep -v '^grpclog/component.go\|^internal/grpctest/tlogger_test.go'
@@ -127,7 +127,7 @@ staticcheck -go 1.19 -checks 'all' ./... > "${SC_OUT}" || true
127127
grep -v "(ST1000)" "${SC_OUT}" | grep -v "(SA1019)" | grep -v "(ST1003)" | not grep -v "(ST1019)\|\(other import of\)"
128128

129129
# Exclude underscore checks for generated code.
130-
grep "(ST1003)" "${SC_OUT}" | not grep -v '\(.pb.go:\)\|\(code_string_test.go:\)'
130+
grep "(ST1003)" "${SC_OUT}" | not grep -v '\(.pb.go:\)\|\(code_string_test.go:\)\|\(grpc_testing_not_regenerate\)'
131131

132132
# Error for duplicate imports not including grpc protos.
133133
grep "(ST1019)\|\(other import of\)" "${SC_OUT}" | not grep -Fv 'XXXXX PleaseIgnoreUnused
@@ -152,6 +152,7 @@ grep "(SA1019)" "${SC_OUT}" | not grep -Fv 'XXXXX PleaseIgnoreUnused
152152
XXXXX Protobuf related deprecation errors:
153153
"github.com/golang/protobuf
154154
.pb.go:
155+
grpc_testing_not_regenerate
155156
: ptypes.
156157
proto.RegisterType
157158
XXXXX gRPC internal usage deprecation errors:

0 commit comments

Comments
 (0)