From cec0a1f322834a332beef2a177763cef3ec7011f Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Mon, 12 Oct 2026 00:41:37 +1100 Subject: [PATCH] Add tofu-validate and tflint hooks, track lock files --- .gitignore | 1 - .pre-commit-config.yaml | 2 ++ modules/binarylane/.tflint.hcl | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 modules/binarylane/.tflint.hcl diff --git a/.gitignore b/.gitignore index 4c26d7a..d0d7001 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,3 @@ *.tfplan tfplan crash.log -.terraform.lock.hcl diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0439d93..2d8aea7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,8 @@ repos: rev: v0.1.30 hooks: - id: tofu-fmt + - id: tofu-validate + - id: tflint - id: terragrunt-hcl-fmt - repo: https://github.com/adrienverge/yamllint.git rev: v1.37.1 diff --git a/modules/binarylane/.tflint.hcl b/modules/binarylane/.tflint.hcl new file mode 100644 index 0000000..3a2ace1 --- /dev/null +++ b/modules/binarylane/.tflint.hcl @@ -0,0 +1,3 @@ +rule "terraform_unused_declarations" { + enabled = false +}