From: prombot Date: Tue, 29 Jun 2021 00:01:45 +0000 (+0000) Subject: Update common Prometheus files X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2a80cfbdb84621983ca6b2576c2acf99409df58b;p=blackbox_exporter.git Update common Prometheus files Signed-off-by: prombot --- diff --git a/Makefile.common b/Makefile.common index ce80d53..a1b1ca4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -118,7 +118,7 @@ endif %: common-% ; .PHONY: common-all -common-all: precheck style check_license lint unused build test +common-all: precheck style check_license lint yamllint unused build test .PHONY: common-style common-style: @@ -198,6 +198,15 @@ else endif endif +.PHONY: common-yamllint +common-yamllint: + @echo ">> running yamllint on all YAML files in the repository" +ifeq (, $(shell which yamllint)) + @echo "yamllint not installed so skipping" +else + yamllint . +endif + # For backward-compatibility. .PHONY: common-staticcheck common-staticcheck: lint