Update common Prometheus files
authorprombot <prometheus-team@googlegroups.com>
Tue, 29 Jun 2021 00:01:45 +0000 (00:01 +0000)
committerprombot <prometheus-team@googlegroups.com>
Tue, 29 Jun 2021 00:01:45 +0000 (00:01 +0000)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Makefile.common

index ce80d530a39c5da975f1a4ccf6feeefe96fbdabf..a1b1ca40f4b028ffb46a77de0af43617fb4afab3 100644 (file)
@@ -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