From 54a8599ee326c1c225f7c5e0de08892bbcd531c6 Mon Sep 17 00:00:00 2001 From: Purnesh Dixit Date: Thu, 5 Sep 2024 10:01:32 +0530 Subject: [PATCH] move trailing check command with all git grep --- scripts/vet.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/vet.sh b/scripts/vet.sh index 7c7fc8b21f8f..8216dfe571b7 100755 --- a/scripts/vet.sh +++ b/scripts/vet.sh @@ -67,6 +67,9 @@ not git grep "\"github.com/golang/protobuf/*" -- "*.go" ':(exclude)reflection/te # - Ensure all usages of grpc_testing package are renamed when importing. not git grep "\(import \|^\s*\)\"google.golang.org/grpc/interop/grpc_testing" -- "*.go" +# Ensure that no trailing spaces are found. +not git grep '[[:blank:]]$' + # - Ensure all xds proto imports are renamed to *pb or *grpc. git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' ':(exclude)*.pb.go' | not grep -v 'pb "\|grpc "' @@ -185,7 +188,4 @@ revive \ -config "$(dirname "$0")/revive.toml" \ ./... -# Ensure that no trailing spaces are found. -not git grep '[[:blank:]]$' - echo SUCCESS