From: Thanh Ha Date: Fri, 3 Aug 2018 19:39:44 +0000 (-0400) Subject: Enable YAML linter and fix lint issues X-Git-Tag: v0.1.0~11 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=cee154023e42c03baf2f2f2e2c3d6ccfcd3d842b;p=releng%2Fcommon-packer.git Enable YAML linter and fix lint issues Resolve relevant lint issues and enable the YAML linter. Change-Id: I11cb7b6a1edb72f165ba9ba051bc19794e4684bd Signed-off-by: Thanh Ha --- diff --git a/.coafile b/.coafile index 57721eb..e5d1171 100644 --- 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 index 0000000..b87f972 --- /dev/null +++ b/.yamllint.conf @@ -0,0 +1,8 @@ +extends: default + +rules: + empty-lines: + max-end: 1 + line-length: + max: 120 + truthy: false diff --git a/provision/docker.yaml b/provision/docker.yaml index 39a7206..09e1cfa 100644 --- a/provision/docker.yaml +++ b/provision/docker.yaml @@ -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