Skip to content

Commit

Permalink
Merge pull request #80 from xmidt-org/yaml-lint
Browse files Browse the repository at this point in the history
chore:Enable yaml linting.
  • Loading branch information
schmidtw authored May 29, 2024
2 parents c1f1a7c + 3965dc3 commit 51ba116
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
# SPDX-License-Identifier: Apache-2.0
---
coverage:
range: 50..80
round: down
Expand All @@ -8,4 +11,4 @@ ignore:
- "vendor"

fixes:
- "github.com/xmidt-org/voynicrypto/::"
- "github.com/xmidt-org/voynicrypto/::"
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 @@ -25,4 +25,5 @@ jobs:
copyright-skip: true
style-skip: true
release-type: library
yaml-lint-skip: false
secrets: inherit
8 changes: 3 additions & 5 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
linters-settings:
misspell:
locale: US
errorlint:
# Report non-wrapping error creation using fmt.Errorf
errorf: false

linters:
enable:
Expand All @@ -24,8 +27,3 @@ issues:
linters:
- dupl
- funlen

linters-settings:
errorlint:
# Report non-wrapping error creation using fmt.Errorf
errorf: false
37 changes: 37 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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: disable
2 changes: 1 addition & 1 deletion noop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ cipher:
- type: none
kid: none
- type: box
kid: rip
kid: rip

0 comments on commit 51ba116

Please sign in to comment.