peridot/scripts/lintproto
2023-08-24 09:13:16 +02:00

10 lines
393 B
Bash
Executable file

#!/usr/bin/env bash
bazel build //vendor/github.com/googleapis/api-linter/cmd/api-linter
bin_path="bazel-bin/vendor/github.com/googleapis/api-linter/cmd/api-linter/api-linter_/api-linter"
$bin_path \
$(find . -name "*.proto" ! -path "./vendor/*" ! -path "./third_party/*" ! -path "./node_modules/*" ! -path "./bazel-*") \
-I . \
-I third_party/googleapis \
--config .api-linter.yaml