We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
buf lint
protobuf.sh
1 parent 36745da commit a3ec8d4Copy full SHA for a3ec8d4
2 files changed
shell/linters/buf.sh
shell/linters/protobuf.sh
@@ -24,8 +24,16 @@ buf_formatter() {
24
run_buf format --write
25
}
26
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
+
34
linter() {
35
run_command "buf" buf_linter
36
+ run_command "buf" buf_lint_linter
37
38
39
formatter() {
0 commit comments