Skip to content

Commit dbe1337

Browse files
committed
update protobuf.sh
1 parent d6f1bc3 commit dbe1337

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

shell/linters/protobuf.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@ buf_formatter() {
2525
}
2626

2727
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
28+
run_buf lint
3229
}
3330

3431
linter() {
35-
run_command "buf" buf_linter
36-
run_command "buf" buf_lint_linter
32+
run_command "buf format" buf_linter
33+
run_command "buf lint" buf_lint_linter
3734
}
3835

3936
formatter() {

0 commit comments

Comments
 (0)