Skip to content

Commit d20f84a

Browse files
committed
Exclude generated protos in vet check for import renaming.
1 parent a5eae63 commit d20f84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ git grep -l 'grpclog.I\|grpclog.W\|grpclog.E\|grpclog.F\|grpclog.V' -- "*.go" |
9090
not git grep "\(import \|^\s*\)\"github.com/golang/protobuf/ptypes/" -- "*.go"
9191

9292
# - Ensure all xds proto imports are renamed to *pb or *grpc.
93-
git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' | not grep -v 'pb "\|grpc "'
93+
git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' ':(exclude)*.pb.go' | not grep -v 'pb "\|grpc "'
9494

9595
# - gofmt, goimports, golint (with exceptions for generated code), go vet.
9696
gofmt -s -d -l . 2>&1 | fail_on_output

0 commit comments

Comments
 (0)