From e8ca088dd960448d6655983ff40f971bde953db2 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:06:06 -0700 Subject: [PATCH 1/2] chore:Enable yaml linting. --- .codecov.yml | 4 ++-- .github/dependabot.yml | 6 ++++-- .github/workflows/ci.yml | 1 + .yamllint.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 .yamllint.yml diff --git a/.codecov.yml b/.codecov.yml index 22e34f4..a778a18 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,6 +1,6 @@ # SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC # SPDX-License-Identifier: Apache-2.0 - +--- coverage: range: 50..80 round: down @@ -11,4 +11,4 @@ ignore: - "vendor" fixes: - - "github.com/xmidt-org/wrp-go/::" \ No newline at end of file + - "github.com/xmidt-org/wrp-go/::" 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 59e90b1..67e28e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,4 +23,5 @@ jobs: uses: xmidt-org/shared-go/.github/workflows/ci.yml@c9c75b3fd850c64594bcdc7181b4f7557675faed # v4.4.0 with: release-type: library + yaml-lint-skip: false secrets: inherit 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 e4491d96ce9ead665e3cb9e1f5d3a64243d29e3d Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:19:37 -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