Skip to content

Commit

Permalink
Add .yamllint and disable some annoying recurring warnings on every…
Browse files Browse the repository at this point in the history
… pr (llvm#3224)
  • Loading branch information
renxida authored Apr 30, 2024
1 parent 33eef15 commit 0a2d21b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit 0a2d21b

Please sign in to comment.