From 489efe939b5c83be21336334f4624f0406581eeb Mon Sep 17 00:00:00 2001 From: schmidtw Date: Tue, 28 May 2024 20:06:43 -0700 Subject: [PATCH] chore:Enable yaml linting. --- .github/dependabot.yml | 6 +++-- .github/workflows/ci.yml | 1 + .github/workflows/integration.yml | 4 ++-- .yamllint.yml | 40 +++++++++++++++++++++++++++++++ packaging/conf/all.yaml | 4 ++-- 5 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 .yamllint.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2fb3c9e4..8764f8ba 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 22fe8310..4daacbbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,5 @@ jobs: license: MIT release-with-unique-user: false release-main-package: cmd/process-exporter/main.go + yaml-lint-skip: false secrets: inherit diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index c45d63b7..e67a4ce2 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -29,9 +29,9 @@ jobs: shell: bash run: | CGO_ENABLED=0 go build -o integration-tester cmd/integration-tester/main.go - + CGO_ENABLED=0 go build -o load-generator cmd/load-generator/main.go - + CGO_ENABLED=0 go build -o process-exporter -a -tags netgo cmd/process-exporter/main.go - name: Run the integration test diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 00000000..1ca19877 --- /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/packaging/conf/all.yaml b/packaging/conf/all.yaml index b1afd8be..a7aff597 100644 --- a/packaging/conf/all.yaml +++ b/packaging/conf/all.yaml @@ -1,4 +1,4 @@ process_names: - name: "{{.Comm}}" - cmdline: - - '.+' \ No newline at end of file + cmdline: + - '.+'