From cee154023e42c03baf2f2f2e2c3d6ccfcd3d842b Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 3 Aug 2018 15:39:44 -0400 Subject: [PATCH] Enable YAML linter and fix lint issues Resolve relevant lint issues and enable the YAML linter. Change-Id: I11cb7b6a1edb72f165ba9ba051bc19794e4684bd Signed-off-by: Thanh Ha --- .coafile | 6 ++++++ .yamllint.conf | 8 ++++++++ provision/docker.yaml | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .yamllint.conf 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 -- 2.16.6