Skip to content

Commit 54a8599

Browse files
committed
move trailing check command with all git grep
1 parent 6135d8f commit 54a8599

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/vet.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ not git grep "\"github.com/golang/protobuf/*" -- "*.go" ':(exclude)reflection/te
6767
# - Ensure all usages of grpc_testing package are renamed when importing.
6868
not git grep "\(import \|^\s*\)\"google.golang.org/grpc/interop/grpc_testing" -- "*.go"
6969

70+
# Ensure that no trailing spaces are found.
71+
not git grep '[[:blank:]]$'
72+
7073
# - Ensure all xds proto imports are renamed to *pb or *grpc.
7174
git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' ':(exclude)*.pb.go' | not grep -v 'pb "\|grpc "'
7275

@@ -185,7 +188,4 @@ revive \
185188
-config "$(dirname "$0")/revive.toml" \
186189
./...
187190

188-
# Ensure that no trailing spaces are found.
189-
not git grep '[[:blank:]]$'
190-
191191
echo SUCCESS

0 commit comments

Comments
 (0)