-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tflint.hcl
More file actions
29 lines (25 loc) · 904 Bytes
/
.tflint.hcl
File metadata and controls
29 lines (25 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
plugin "terraform" {
enabled = true
preset = "recommended"
}
plugin "aws" {
enabled = true
version = "0.44.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
rule "terraform_unused_declarations" {
# disabled because we use a shared "inputs.tf" file and a set of ".tfvars" filesin a lot of places
# and tflint is unable to tell the difference between a variable being unused in a particular root
# and a variable being completely unused.
#
# If asked to fix the problem, tflint will simply delete all the variables it thinks aren't used,
# which results in half the variables being deleted erronously.
enabled = false
}
rule "terraform_naming_convention" {
enabled = true
format = "mixed_snake_case" # we allow upper and lower case letters in our snakes
variable {
custom = "[a-zA-Z0-9-]+" # for now we're ok with our variables being kebab case
}
}