Enable JSON linter and fix lint issues 09/12109/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 3 Aug 2018 19:33:10 +0000 (15:33 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 3 Aug 2018 19:33:11 +0000 (15:33 -0400)
Fix outstanding JSON lint issues and enable the JSON linter.

Change-Id: I858b194f3d23c6aa2f868cc2f04bbdc93a8732c6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.coafile
templates/windows-builder.json

index c6b8dcf..57721eb 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -21,6 +21,12 @@ ignore_length_regex = Signed-off-by,
     http://,
     https://
 
+[JSON]
+bears = JSONFormatBear
+files = templates/**.json,
+    vars/**.json
+indent_size = 2
+
 [all.ShellCheck]
 bears = ShellCheckBear,SpaceConsistencyBear
 files = provision/**.sh
index 577591d..230e458 100644 (file)
   ],
   "provisioners": [
     {
-      "type":  "ansible",
+      "type": "ansible",
       "playbook_file": "provision/local-windows-builder.yaml",
       "extra_arguments": [
-        "--connection", "packer",
-        "--extra-vars", "ansible_shell_type=powershell ansible_shell_executable=None"
+        "--connection",
+        "packer",
+        "--extra-vars",
+        "ansible_shell_type=powershell ansible_shell_executable=None"
       ]
     }
   ]