From ff552b756602ca14a41b2fe2f239a48f6fa6ef7f Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Sun, 7 Jan 2024 12:10:39 -0500 Subject: [PATCH] build: lint proto files by package (#102) Signed-off-by: Artur Troian --- make/lint.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/make/lint.mk b/make/lint.mk index a842ea91..2458c5b6 100644 --- a/make/lint.mk +++ b/make/lint.mk @@ -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)