Skip to content

Commit d185ce0

Browse files
committed
Run buf linter as presubmit
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
1 parent ec16bdf commit d185ce0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hack/verify-protos.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ set -o xtrace
99
source hack/common.sh
1010

1111
make proto
12+
13+
# Check if the proto definitions need updating
1214
git diff --exit-code || exit_with_msg "Code from protocol definitions is not up to date. Please run 'make proto' and commit the result"
15+
16+
# Check the format of the proto files
17+
buf lint || exit_with_msg "The proto files have linting errors. Please run 'buf lint' and fix them before committing"

0 commit comments

Comments
 (0)