generated from craigsloggett-lab/terraform-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tflint.hcl
34 lines (29 loc) · 992 Bytes
/
.tflint.hcl
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
30
31
32
33
34
# Settings are described here: https://github.com/terraform-linters/tflint/blob/main/docs/user-guide/config.md
config {
format = "default"
module = true
force = false
disabled_by_default = false
}
# Default Terraform ruleset described here: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/main/docs/rules/README.md
# Disallow specifying a git repository as a module source without pinning to a version.
rule "terraform_module_pinned_source" {
enabled = true
style = "semver"
}
# Checks that Terraform modules sourced from a registry specify a version.
rule "terraform_module_version" {
enabled = true
exact = false
}
# Enforces naming conventions for resources, data sources, etc.
rule "terraform_naming_convention" {
enabled = true
format = "snake_case"
}
plugin "terraform" {
enabled = true
version = "0.6.0"
source = "github.com/terraform-linters/tflint-ruleset-terraform"
preset = "all"
}