From ecb6625a21dfed5e527157f3df367e54fef5cff5 Mon Sep 17 00:00:00 2001 From: Colwyn Fritze-Moor Date: Tue, 15 Feb 2022 11:15:44 -0800 Subject: [PATCH] fix: enable tflint module mode --- .github/linters/.tflint.hcl | 7 +++++++ lib/functions/worker.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .github/linters/.tflint.hcl diff --git a/.github/linters/.tflint.hcl b/.github/linters/.tflint.hcl new file mode 100644 index 00000000..f5cfdb77 --- /dev/null +++ b/.github/linters/.tflint.hcl @@ -0,0 +1,7 @@ +config { + module = true +} + +plugin "aws" { + enabled = true +} diff --git a/lib/functions/worker.sh b/lib/functions/worker.sh index 3f36d702..0ff89893 100755 --- a/lib/functions/worker.sh +++ b/lib/functions/worker.sh @@ -287,7 +287,7 @@ function LintCodebase() { ( cd "${DIR_NAME}" || exit - terraform get 2>&1 + terraform get ) fi