Skip to content

Commit

Permalink
feat(back): #1381 use tflint
Browse files Browse the repository at this point in the history
- Add tflint to the lint-terraform built-in

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
  • Loading branch information
rohaquinlop committed Oct 21, 2024
1 parent cf2105d commit 70fcef2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/args/lint-terraform/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ function main {
&& terraform init \
&& info Linting "${src}" \
&& info "${cfg}" \
&& tflint --config="${cfg}" --init
&& tflint --config="${cfg}" --init \
&& tflint --config="${cfg}"
}

main "${@}"
2 changes: 1 addition & 1 deletion src/evaluator/modules/lint-terraform/config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ config {
}
plugin "aws" {
enabled = true
version = "0.13.4"
version = "0.33.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
11 changes: 11 additions & 0 deletions test/terraform/module/main.tf
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
terraform {
required_version = ">= 1.0"

required_providers {
null = {
source = "hashicorp/null"
version = ">= 3"
}
}
}

resource "null_resource" "example" {
}

0 comments on commit 70fcef2

Please sign in to comment.