Skip to content

Commit 6135d8f

Browse files
committed
modify git grep to succeed
1 parent 9662581 commit 6135d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/vet.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ revive \
185185
-config "$(dirname "$0")/revive.toml" \
186186
./...
187187

188-
# Error if trailing spaces found in any files excluding files in .git directory
189-
git grep "[[:blank:]]$" -- | not grep -v '\.pb\.go\|protoc-gen-go-grpc\|grpc_testing_not_regenerate'
188+
# Ensure that no trailing spaces are found.
189+
not git grep '[[:blank:]]$'
190190

191191
echo SUCCESS

0 commit comments

Comments
 (0)