Skip to content

Commit

Permalink
Change yamllint default config to better support idiomatic github act…
Browse files Browse the repository at this point in the history
…ions syntax (#656)

This turns off warnings for empty blocks like these:
```yaml
on:
  pull_request:
  workflow_dispatch:
```
Which are typical in github actions yaml.
  • Loading branch information
dapirian authored Feb 8, 2024
1 parent af83d67 commit 171c6bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ lint:
# enabled linters inherited from github.com/trunk-io/configs plugin
disabled:
- pylint # pylint diagnostics are too strict
- semgrep

ignore:
- linters: [ALL]
Expand Down
3 changes: 0 additions & 3 deletions linters/yamllint/.yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ rules:
quoted-strings:
required: only-when-needed
extra-allowed: ["{|}"]
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
key-duplicates: {}
octal-values:
forbid-implicit-octal: true

0 comments on commit 171c6bd

Please sign in to comment.