diff --git a/.config/tflint.hcl b/.config/tflint.hcl index 6cf31d9..d60ea6d 100644 --- a/.config/tflint.hcl +++ b/.config/tflint.hcl @@ -1,13 +1,14 @@ plugin "azurerm" { enabled = true source = "github.com/terraform-linters/tflint-ruleset-azurerm" - version = "0.21.0" + version = "0.27.0" } config { - module = true + call_module_type = "local" force = false disabled_by_default = false + plugin_dir = "~/.tflint.d/plugins" varfile = ["terraform.tfvars.ci"] } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b669b3c..58725ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,7 @@ repos: stages: [pre-commit] args: - --args=--config=.config/terraform-docs.yml + - --hook-config=--use-standard-markers=true exclude: "^modules|^example|^tools" - id: terraform_validate stages: [pre-commit] @@ -44,7 +45,7 @@ repos: args: - --args=--config=__GIT_WORKING_DIR__/.config/tflint.hcl - --env-vars=TFLINT_LOG="info" - - id: terraform_tfsec + - id: terraform_trivy stages: [pre-commit] - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook