From 7024ac5064b48e2d54af36352e3aa7b33ef1bd0e Mon Sep 17 00:00:00 2001 From: beorn7 Date: Sat, 28 May 2022 19:06:51 +0200 Subject: [PATCH] Configure yamllint, remove lint errors Signed-off-by: beorn7 --- .circleci/config.yml | 1 + .github/workflows/golangci-lint.yml | 1 + .golangci.yml | 3 ++- .promu.yml | 1 + .yamllint | 20 ++++++++++++++++++++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .yamllint diff --git a/.circleci/config.yml b/.circleci/config.yml index 2f741b6a..a06041e5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,4 @@ +--- version: 2.1 orbs: prometheus: prometheus/prometheus@0.16.0 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 136d7d4b..a95cc941 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,3 +1,4 @@ +--- name: golangci-lint on: push: diff --git a/.golangci.yml b/.golangci.yml index d9efa75c..5876793a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,6 @@ +--- # Run only staticcheck for now. Additional linters will be enabled one-by-one. linters: enable: - - staticcheck + - staticcheck disable-all: true diff --git a/.promu.yml b/.promu.yml index f4e4c40f..b0d15c0b 100644 --- a/.promu.yml +++ b/.promu.yml @@ -1,3 +1,4 @@ +--- go: # Whenever the Go version is updated here, .circle/config.yml should also # be updated. diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..ebc5c9d7 --- /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 + line-length: disable + truthy: + ignore: | + .github/workflows/golangci-lint.yml