From f3e5d45d664ccfd26f29365c7345d94ff4d03424 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:05:44 -0700 Subject: [PATCH 1/2] chore:Enable yaml linting. --- .codecov.yml | 5 ++-- .github/dependabot.yml | 6 +++-- .github/workflows/ci.yml | 1 + .golangci.yaml | 2 +- .release/docker/themis_spruce.yaml | 1 - .yamllint.yml | 40 ++++++++++++++++++++++++++++++ 6 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 .yamllint.yml diff --git a/.codecov.yml b/.codecov.yml index 6e5dd8d..7025316 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,5 +1,6 @@ -## SPDX-FileCopyrightText: 2017 Comcast Cable Communications Management, LLC -## SPDX-License-Identifier: Apache-2.0 +# SPDX-FileCopyrightText: 2017 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 +--- coverage: range: 50..80 round: down diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2fb3c9e..8764f8b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,13 +7,14 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - # Check for updates to GitHub Actions every week + # Check for updates to GitHub Actions every day interval: "daily" labels: - "dependencies" commit-message: prefix: "chore" include: "scope" + open-pull-requests-limit: 10 - package-ecosystem: gomod directory: / @@ -22,5 +23,6 @@ updates: labels: - "dependencies" commit-message: - prefix: "feat" + prefix: "chore" include: "scope" + open-pull-requests-limit: 10 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e447d2..e2966da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,5 @@ jobs: release-docker-latest: false release-docker-major: false release-docker-minor: false + yaml-lint-skip: false secrets: inherit diff --git a/.golangci.yaml b/.golangci.yaml index 5a2eba2..18ba15b 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -27,4 +27,4 @@ linters-settings: # Report non-wrapping error creation using fmt.Errorf errorf: false misspell: - locale: US \ No newline at end of file + locale: US diff --git a/.release/docker/themis_spruce.yaml b/.release/docker/themis_spruce.yaml index 8a17afc..8d66b35 100644 --- a/.release/docker/themis_spruce.yaml +++ b/.release/docker/themis_spruce.yaml @@ -132,4 +132,3 @@ tracing: # endpoint is where trace information should be routed. Applies to zipkin and jaegar. endpoint: (( grab $TRACING_PROVIDER_ENDPOINT || "http://zipkin:9411/api/v2/spans" )) - diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..1ca1987 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,40 @@ +# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 +--- + +extends: default + +ignore: [] + +rules: + braces: + level: warning + max-spaces-inside: 1 + brackets: + level: warning + max-spaces-inside: 1 + colons: + level: warning + max-spaces-after: -1 + commas: + level: warning + comments: disable + comments-indentation: disable + document-start: + present: true + empty-lines: + max: 2 + hyphens: + max-spaces-after: 1 + indentation: + level: error + indent-sequences: consistent + line-length: + level: warning + max: 90 + allow-non-breakable-words: true + allow-non-breakable-inline-mappings: true + truthy: + allowed-values: + - 'true' + - 'false' From dd6c021fbb5159f3dd2d84b890ccce2f3e1333bb Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:19:25 -0700 Subject: [PATCH 2/2] chore:Disable truthy filter. --- .yamllint.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.yamllint.yml b/.yamllint.yml index 1ca1987..c2053c9 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -34,7 +34,4 @@ rules: max: 90 allow-non-breakable-words: true allow-non-breakable-inline-mappings: true - truthy: - allowed-values: - - 'true' - - 'false' + truthy: disable