-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.tflint.hcl
More file actions
45 lines (37 loc) · 1.2 KB
/
.tflint.hcl
File metadata and controls
45 lines (37 loc) · 1.2 KB
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
35
36
37
38
39
40
41
42
43
44
45
/** TFLint configuration for infrastructure/terraform and child modules */
tflint {
required_version = ">= 0.61.0"
}
config {
/* call local modules so modules/ subdirectories are also linted */
call_module_type = "local"
format = "compact"
}
/* bundled terraform ruleset — recommended preset excludes terraform_comment_syntax */
plugin "terraform" {
enabled = true
preset = "recommended"
}
/* azurerm ruleset — only available plugin for this provider stack */
plugin "azurerm" {
enabled = true
version = "0.31.1"
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
}
// terraform_comment_syntax: repo uses // and /* */ comments, not #
rule "terraform_comment_syntax" {
enabled = false
}
// terraform_documented_variables: require description on all variable blocks
rule "terraform_documented_variables" {
enabled = true
}
// terraform_documented_outputs: require description on all output blocks
rule "terraform_documented_outputs" {
enabled = true
}
/* terraform_naming_convention: enforce snake_case across all block types */
/* note: cannot scope to bool-typed variables only — snake_case is TFLint maximum */
rule "terraform_naming_convention" {
enabled = true
}