Add `.yamllint` and disable some annoying recurring warnings on every pr (#3224)

pull/3269/head
Xida Ren (Cedar) 2024-04-30 17:48:01 -04:00 committed by GitHub
parent 33eef15e42
commit 0a2d21b108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 0 deletions

22
.yamllint.yml 100644
View File

@ -0,0 +1,22 @@
---
extends: default
rules:
# These do not appear to be conventional in GitHub actions.
document-end:
present: false
document-start:
present: false
# GitHub actions use "on" for triggers.
truthy: disable
# We have lots of long strings and command lines.
line-length: disable
comments:
# Formatters may do this (e.g. Prettier does) and it seems like the most
# trivial thing to get a failing check for.
min-spaces-from-content: 1
# This is not a useful check, especially when disabling entire blocks.
comments-indentation: disable
ignore: /third_party/*