Files
cline/scripts/proto-lint.sh
T
Sarah Fortune 0cd462a414 Add linter check for proto files and add autoformatting (#7066)
Add a linter check for proto files to avoid issues like https://github.com/cline/cline/pull/7054
Format the proto files while linting
2025-10-23 14:37:26 -07:00

16 lines
299 B
Bash
Executable File

#!/bin/bash
set -u
buf lint
if ! buf format -w --exit-code; then
echo Proto files were formatted
fi
if grep -rn "rpc .*[A-Z][A-Z].*[(]" --include="*.proto"; then
# See https://github.com/cline/cline/pull/7054
echo Error: Proto RPC names cannot contain repeated capital letters
exit 1
fi