From d0ef829e919a61570a9eb4ab99236a9d68071ba0 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 3 Aug 2018 15:33:10 -0400 Subject: [PATCH] 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 --- .coafile | 6 ++++++ templates/windows-builder.json | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) 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" ] } ] -- 2.16.6