CI: Rename yamllint config file 11/67611/3
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 5 May 2021 16:32:23 +0000 (09:32 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 5 May 2021 17:46:30 +0000 (10:46 -0700)
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 <agrimberg@linuxfoundation.org>
.yamllint [new file with mode: 0644]
yamllint.conf [deleted file]

diff --git a/.yamllint b/.yamllint
new file mode 100644 (file)
index 0000000..d4497f8
--- /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 (file)
index b821cb8..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-extends: default
-
-rules:
-  empty-lines:
-    max-end: 1
-  line-length:
-    max: 120