From: Thanh Ha Date: Fri, 3 Aug 2018 19:33:10 +0000 (-0400) Subject: Enable JSON linter and fix lint issues X-Git-Tag: v0.1.0~12 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=d0ef829e919a61570a9eb4ab99236a9d68071ba0;p=releng%2Fcommon-packer.git Enable JSON linter and fix lint issues Fix outstanding JSON lint issues and enable the JSON linter. Change-Id: I858b194f3d23c6aa2f868cc2f04bbdc93a8732c6 Signed-off-by: Thanh Ha --- diff --git a/.coafile b/.coafile index c6b8dcf..57721eb 100644 --- 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 diff --git a/templates/windows-builder.json b/templates/windows-builder.json index 577591d..230e458 100644 --- a/templates/windows-builder.json +++ b/templates/windows-builder.json @@ -41,11 +41,13 @@ ], "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" ] } ]