From 275b533fd6f84e38c6a514ff8ee7e79d96941be7 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:06:02 -0700 Subject: [PATCH 1/2] chore:Enable yaml linting. --- .codecov.yml | 5 ++++- .github/dependabot.yml | 6 ++++-- .github/workflows/ci.yml | 1 + .golangci.yaml | 8 +++----- .yamllint.yml | 40 ++++++++++++++++++++++++++++++++++++++++ noop.yaml | 2 +- 6 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 .yamllint.yml diff --git a/.codecov.yml b/.codecov.yml index ab72744..37683f6 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 +--- coverage: range: 50..80 round: down @@ -8,4 +11,4 @@ ignore: - "vendor" fixes: - - "github.com/xmidt-org/voynicrypto/::" \ No newline at end of file + - "github.com/xmidt-org/voynicrypto/::" 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 bf1a4df..1367ce7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,5 @@ jobs: copyright-skip: true style-skip: true release-type: library + yaml-lint-skip: false secrets: inherit diff --git a/.golangci.yaml b/.golangci.yaml index f02cbee..044722e 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,6 +2,9 @@ linters-settings: misspell: locale: US + errorlint: + # Report non-wrapping error creation using fmt.Errorf + errorf: false linters: enable: @@ -24,8 +27,3 @@ issues: linters: - dupl - funlen - -linters-settings: - errorlint: - # Report non-wrapping error creation using fmt.Errorf - errorf: false 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' diff --git a/noop.yaml b/noop.yaml index 4a8ef1e..f85109d 100644 --- a/noop.yaml +++ b/noop.yaml @@ -2,4 +2,4 @@ cipher: - type: none kid: none - type: box - kid: rip \ No newline at end of file + kid: rip From 3965dc32b2a679397ea5f8f45a4c2df49bcd6fa9 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:19:35 -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