From 929e52eafbab47ae88e8c034e12cf1733ca8ea80 Mon Sep 17 00:00:00 2001 From: prombot Date: Thu, 21 Mar 2024 17:48:44 +0000 Subject: [PATCH 1/2] Update common Prometheus files Signed-off-by: prombot --- Makefile.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.common b/Makefile.common index 483b3bf9..0acfb9d8 100644 --- a/Makefile.common +++ b/Makefile.common @@ -49,7 +49,7 @@ endif GOTEST := $(GO) test GOTEST_DIR := ifneq ($(CIRCLE_JOB),) -ifneq ($(shell command -v gotestsum > /dev/null),) +ifneq ($(shell command -v gotestsum 2> /dev/null),) GOTEST_DIR := test-results GOTEST := gotestsum --junitfile $(GOTEST_DIR)/unit-tests.xml -- endif @@ -182,7 +182,7 @@ endif .PHONY: common-yamllint common-yamllint: @echo ">> running yamllint on all YAML files in the repository" -ifeq (, $(shell command -v yamllint > /dev/null)) +ifeq (, $(shell command -v yamllint 2> /dev/null)) @echo "yamllint not installed so skipping" else yamllint . From ec23fac9191c287032a7cc46230f45f93a96caf2 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Thu, 18 Apr 2024 09:55:18 +0200 Subject: [PATCH 2/2] Add .yamllint Signed-off-by: Simon Pasquier --- .yamllint | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .yamllint diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..5270c528 --- /dev/null +++ b/.yamllint @@ -0,0 +1,20 @@ +--- +extends: default + +rules: + braces: + max-spaces-inside: 1 + level: error + brackets: + max-spaces-inside: 1 + level: error + commas: disable + comments: disable + comments-indentation: disable + document-start: disable + indentation: + spaces: consistent + indent-sequences: consistent + line-length: disable + truthy: + check-keys: false