From 8c25aad95dbf9d3ced3447780841c6456c51df5c Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:06:17 -0700 Subject: [PATCH 1/2] chore:Enable yaml linting. --- .codecov.yml | 3 ++ .github/dependabot.yml | 6 ++-- .github/workflows/ci.yml | 1 + .golangci.yaml | 2 +- .yamllint.yml | 40 ++++++++++++++++++++++++ deploy/docker-compose/docker-compose.yml | 2 +- 6 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 .yamllint.yml diff --git a/.codecov.yml b/.codecov.yml index 7c468fb..47bc699 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 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 5995fed..890a42d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,4 +24,5 @@ jobs: with: copyright-skip: true release-type: program + yaml-lint-skip: false secrets: inherit diff --git a/.golangci.yaml b/.golangci.yaml index 4c6812d..1d7e927 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -26,4 +26,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/.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/deploy/docker-compose/docker-compose.yml b/deploy/docker-compose/docker-compose.yml index 4558cab..da141b6 100644 --- a/deploy/docker-compose/docker-compose.yml +++ b/deploy/docker-compose/docker-compose.yml @@ -150,4 +150,4 @@ services: depends_on: - yb-manager networks: - xmidt: \ No newline at end of file + xmidt: From 42c8049658891263fb8b4c03058a746263b44c2c Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:19:43 -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