mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 05:04:05 -08:00
Only run if yamllint is installed
Signed-off-by: Levi Harrison <git@leviharrison.dev>
This commit is contained in:
parent
b0df5d9568
commit
b7d2f4e189
|
@ -201,7 +201,11 @@ 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
|
||||
|
|
Loading…
Reference in a new issue