Enable YAML linter and fix lint issues 10/12110/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 3 Aug 2018 19:39:44 +0000 (15:39 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 3 Aug 2018 19:39:52 +0000 (15:39 -0400)
Resolve relevant lint issues and enable the YAML linter.

Change-Id: I11cb7b6a1edb72f165ba9ba051bc19794e4684bd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.coafile
.yamllint.conf [new file with mode: 0644]
provision/docker.yaml

index 57721eb..e5d1171 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -33,3 +33,9 @@ files = provision/**.sh
 shell = bash
 indent_size = 4
 use_spaces = yeah
+
+[YAML]
+bears = YAMLLintBear
+files = provision/**.yaml
+document_start = True
+yamllint_config = .yamllint.conf
diff --git a/.yamllint.conf b/.yamllint.conf
new file mode 100644 (file)
index 0000000..b87f972
--- /dev/null
@@ -0,0 +1,8 @@
+extends: default
+
+rules:
+  empty-lines:
+    max-end: 1
+  line-length:
+    max: 120
+  truthy: false
index 39a7206..09e1cfa 100644 (file)
@@ -9,7 +9,7 @@
     - include_role: name=lfit.system-update
 
   roles:
-    - { role: lfit.docker-install, mtu: 1458 }
+    - {role: lfit.docker-install, mtu: 1458}
 
   post_tasks:
     - name: System Reseal