From d97179d3989e50dd71e8ed0126ea55bf33a9d21c Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:04:28 -0700 Subject: [PATCH 1/2] chore:Enable yaml linting. --- .codecov.yml | 3 +++ .github/dependabot.yml | 6 ++++-- .github/workflows/ci.yml | 1 + .yamllint.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .yamllint.yml diff --git a/.codecov.yml b/.codecov.yml index f180e98..d264a23 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 diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e1b617a..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: "automation" + prefix: "chore" include: "scope" + open-pull-requests-limit: 10 - package-ecosystem: gomod directory: / @@ -24,3 +25,4 @@ updates: commit-message: prefix: "chore" include: "scope" + open-pull-requests-limit: 10 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff3069d..0679f12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,4 +24,5 @@ jobs: with: copyright-skip: true 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 7ccadf5417321b1cccab819e1e695d17aa0723c3 Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:18:45 -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