Skip to content

Commit ff552b7

Browse files
authored
build: lint proto files by package (#102)
Signed-off-by: Artur Troian <[email protected]>
1 parent 5b77921 commit ff552b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

make/lint.mk

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
BUF_LINT_PACKAGES ?= provider \
2+
node
3+
4+
.PHONY: lint-%
5+
lint-%:
6+
$(BUF) lint proto/$*
7+
18
.PHONY: lint
2-
lint: $(BUF)
3-
$(BUF) lint
9+
lint: $(BUF) $(patsubst %, lint-%,$(BUF_LINT_PACKAGES))
410

511
.PHONY: check-breaking
612
proto-check-breaking: $(BUF)

0 commit comments

Comments
 (0)