From 0a2d21b108602d2b11c208ca1a713a72f483f6c1 Mon Sep 17 00:00:00 2001 From: "Xida Ren (Cedar)" Date: Tue, 30 Apr 2024 17:48:01 -0400 Subject: [PATCH] Add `.yamllint` and disable some annoying recurring warnings on every pr (#3224) --- .yamllint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .yamllint.yml diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 000000000..ec40711eb --- /dev/null +++ b/.yamllint.yml @@ -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/*