From: Andrew Grimberg Date: Wed, 5 May 2021 16:32:23 +0000 (-0700) Subject: CI: Rename yamllint config file X-Git-Tag: v0.63.1~12 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=9f21fb18814ba6529040eb7152cc6e1f579e1505;p=releng%2Fglobal-jjb.git CI: Rename yamllint config file Yamllint does not look for a yamllint.conf file and we're calling it (that I can find) anywhere with an explicit config file definition. Since .yamllint is the default file used, we are fixing the filename Additionally, we are adding a section on comments to protect against the prettier pre-commit hook that enforces a single space instead of yamllints normal double space for comments after content Change-Id: I0df4b467ea57b1558dbb3c71d74775f84a88b037 Signed-off-by: Andrew Grimberg --- diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..d4497f85 --- /dev/null +++ b/.yamllint @@ -0,0 +1,11 @@ +--- +extends: default + +rules: + empty-lines: + max-end: 1 + line-length: + max: 120 + comments: + # prettier forces 1 space comment separator + min-spaces-from-content: 1 diff --git a/yamllint.conf b/yamllint.conf deleted file mode 100644 index b821cb8c..00000000 --- a/yamllint.conf +++ /dev/null @@ -1,7 +0,0 @@ -extends: default - -rules: - empty-lines: - max-end: 1 - line-length: - max: 120