Skip to content

Commit a3ec8d4

Browse files
committed
add buf lint to protobuf.sh
1 parent 36745da commit a3ec8d4

2 files changed

Lines changed: 8 additions & 17 deletions

File tree

shell/linters/buf.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

shell/linters/protobuf.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ buf_formatter() {
2424
run_buf format --write
2525
}
2626

27+
buf_lint_linter() {
28+
# Why: We're OK with this.
29+
# shellcheck disable=SC2155
30+
local PROTOFMT=$(load_tool)
31+
find_files_with_extensions "${extensions[@]}" | xargs -n1 "$PROTOFMT" lint --path
32+
}
33+
2734
linter() {
2835
run_command "buf" buf_linter
36+
run_command "buf" buf_lint_linter
2937
}
3038

3139
formatter() {

0 commit comments

Comments
 (0)