Skip to content

Commit 3ac970f

Browse files
committed
Merge remote-tracking branch 'prometheus/release-0.11' into PMM-7-merge-commit
2 parents a852822 + dee68d8 commit 3ac970f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile.common

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,15 @@ ifdef GOLANGCI_LINT
159159
$(GOLANGCI_LINT) run $(GOLANGCI_LINT_OPTS) $(pkgs)
160160
endif
161161

162+
.PHONY: common-yamllint
163+
common-yamllint:
164+
@echo ">> running yamllint on all YAML files in the repository"
165+
ifeq (, $(shell which yamllint))
166+
@echo "yamllint not installed so skipping"
167+
else
168+
yamllint .
169+
endif
170+
162171
# For backward-compatibility.
163172
.PHONY: common-staticcheck
164173
common-staticcheck: lint

0 commit comments

Comments
 (0)