Skip to content

Commit

Permalink
add tflint
Browse files Browse the repository at this point in the history
  • Loading branch information
HomMarkHunt committed Nov 30, 2020
1 parent c34bc63 commit dd1085f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .githooks/pre-commit
@@ -0,0 +1,6 @@
terraform fmt -diff
tflint

for FILE in `git diff --diff-filter=d --staged --name-only`; do
git add $FILE
done
3 changes: 3 additions & 0 deletions .tflint.hcl
@@ -0,0 +1,3 @@
config {
deep_check = false
}
2 changes: 1 addition & 1 deletion main.tf
Expand Up @@ -19,5 +19,5 @@ provider "aws" {
}

resource "aws_vpc" "example" {
cidr_block = "10.0.0.0/16"
cidr_block = "10.0.0.0/16"
}

0 comments on commit dd1085f

Please sign in to comment.