Skip to content

Commit

Permalink
build: lint proto files by package
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Jan 7, 2024
1 parent 5b77921 commit 4608635
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions make/lint.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
BUF_LINT_PACKAGES ?= provider \
node

.PHONY: lint-%
lint-%:
$(BUF) lint proto/$*

.PHONY: lint
lint: $(BUF)
$(BUF) lint
lint: $(BUF) $(patsubst %, lint-%,$(BUF_LINT_PACKAGES))

.PHONY: check-breaking
proto-check-breaking: $(BUF)
Expand Down

0 comments on commit 4608635

Please sign in to comment.