Skip to content

Commit

Permalink
Improvements to YAML lint configuration
Browse files Browse the repository at this point in the history
- Explicitly allow unbreakable words and mappings
- Extend the default configuration
- Ignore the `.github` dir (primarily useful for running locally)
- Explicitly disable new-lines (let git manage EOL)
  • Loading branch information
rcdailey committed Sep 4, 2023
1 parent 93953af commit bec7c9e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .yamllint
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Default configuration values: https://yamllint.readthedocs.io/en/stable/configuration.html
# Rules reference: https://yamllint.readthedocs.io/en/stable/rules.html
extends: default

ignore:
- .github

rules:
line-length: {max: 100, allow-non-breakable-words: true}
line-length:
max: 100
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
document-start: disable
comments-indentation: disable

# Let .gitattributes manage EOL
new-lines: disable

0 comments on commit bec7c9e

Please sign in to comment.