Skip to content

Commit 594fd71

Browse files
committed
Update common Prometheus files
Signed-off-by: prombot <[email protected]>
1 parent df461c2 commit 594fd71

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Makefile.common

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ endif
118118
%: common-% ;
119119

120120
.PHONY: common-all
121-
common-all: precheck style check_license lint unused build test
121+
common-all: precheck style check_license lint yamllint unused build test
122122

123123
.PHONY: common-style
124124
common-style:
@@ -198,6 +198,15 @@ else
198198
endif
199199
endif
200200

201+
.PHONY: common-yamllint
202+
common-yamllint:
203+
@echo ">> running yamllint on all YAML files in the repository"
204+
ifeq (, $(shell which yamllint))
205+
@echo "yamllint not installed so skipping"
206+
else
207+
yamllint .
208+
endif
209+
201210
# For backward-compatibility.
202211
.PHONY: common-staticcheck
203212
common-staticcheck: lint

0 commit comments

Comments
 (0)