From 9f21fb18814ba6529040eb7152cc6e1f579e1505 Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Wed, 5 May 2021 09:32:23 -0700 Subject: [PATCH] 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 --- .yamllint | 11 +++++++++++ yamllint.conf | 7 ------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 .yamllint delete mode 100644 yamllint.conf 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 -- 2.16.6