Skip to content

Commit

Permalink
move trailing check command with all git grep
Browse files Browse the repository at this point in the history
  • Loading branch information
purnesh42H committed Sep 6, 2024
1 parent 6135d8f commit 54a8599
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/vet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "'

Expand Down Expand Up @@ -185,7 +188,4 @@ revive \
-config "$(dirname "$0")/revive.toml" \
./...

# Ensure that no trailing spaces are found.
not git grep '[[:blank:]]$'

echo SUCCESS

0 comments on commit 54a8599

Please sign in to comment.