Skip to content

Commit

Permalink
Use a standard tflint config file for all deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Jan 27, 2025
1 parent fce2cac commit 96edba5
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 45 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
tflint --version
tflint --init --recursive
tflint --format compact --call-module-type=all --recursive --force \
-c ../../.tflint.hcl \
--enable-rule=terraform_comment_syntax \
--enable-rule=terraform_deprecated_index \
--enable-rule=terraform_required_providers \
Expand Down
11 changes: 11 additions & 0 deletions .tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugin "aws" {
enabled = true
version = "0.30.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}

plugin "google" {
enabled = true
version = "0.30.0"
source = "github.com/terraform-linters/tflint-ruleset-google"
}
6 changes: 0 additions & 6 deletions terraform/deployments/cluster-infrastructure/.tflint.hcl

This file was deleted.

6 changes: 0 additions & 6 deletions terraform/deployments/cluster-services/.tflint.hcl

This file was deleted.

6 changes: 0 additions & 6 deletions terraform/deployments/datagovuk-infrastructure/.tflint.hcl

This file was deleted.

5 changes: 0 additions & 5 deletions terraform/deployments/ecr/.tflint.hcl

This file was deleted.

6 changes: 0 additions & 6 deletions terraform/deployments/github/.tflint.hcl

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions terraform/deployments/mobile-backend/.tflint.hcl

This file was deleted.

6 changes: 0 additions & 6 deletions terraform/deployments/tfc-configuration/.tflint.hcl

This file was deleted.

0 comments on commit 96edba5

Please sign in to comment.