Skip to content

Commit

Permalink
chore:Enable yaml linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed May 29, 2024
1 parent 3b3cd9b commit 489efe9
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: /
Expand All @@ -22,5 +23,6 @@ updates:
labels:
- "dependencies"
commit-message:
prefix: "feat"
prefix: "chore"
include: "scope"
open-pull-requests-limit: 10
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
40 changes: 40 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -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'
4 changes: 2 additions & 2 deletions packaging/conf/all.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process_names:
- name: "{{.Comm}}"
cmdline:
- '.+'
cmdline:
- '.+'

0 comments on commit 489efe9

Please sign in to comment.