Skip to content

Commit

Permalink
Included all build-in types of protobuf as an exclusion for the fqpn …
Browse files Browse the repository at this point in the history
…checker
  • Loading branch information
Noctunus committed Sep 24, 2024
1 parent 9c3dc7b commit e4c4eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fqpn_check.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

grep --include="*.proto" -r -h -oP "(\S+) (\S+) = \d+;" proto/ | cut -d" " -f1 | sort -u | grep -v "google.protobuf" | grep -v "cmp\." | grep -vP "(bool|bytes|double|int32|int64|string|uint64|//)"
grep --include="*.proto" -r -h -oP "(\S+) (\S+) = \d+;" proto/ | cut -d" " -f1 | sort -u | grep -v "google\.protobuf" | grep -v "cmp\." | grep -vP "(double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|//)"

if [ $? != 1 ] ; then
echo "Error: Found non FQPN types!"
Expand Down

0 comments on commit e4c4eb3

Please sign in to comment.