* Draft terraform_naming_convention * Two fast/stages fixes for terraform_naming_convention * Disable terraform_naming_convention for resources for now * module fixes for terraform_naming_convention * tfdoc * Remove "moved" from recipe and needs-fixing * Fix moved for spoke_ra * fix tests * Use default (snake_case) for resources * factory.terraform_data.project-preconditions * First-pass migration of resources + tests * Fix tests/modules/organization * Require snake_case for variables; Add annotations for _testing * permit _fast_debug variable * Fix net_vpc_factory and net_vpc_firewall tests * tfdoc addons and recipe * Fix more tests * Fix some net-global -> net_global tests --------- Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
37 lines
588 B
HCL
37 lines
588 B
HCL
plugin "terraform" {
|
|
enabled = true
|
|
preset = "recommended"
|
|
}
|
|
|
|
rule "terraform_required_providers" {
|
|
enabled = false
|
|
}
|
|
|
|
rule "terraform_required_version" {
|
|
enabled = false
|
|
}
|
|
|
|
rule "terraform_naming_convention" {
|
|
enabled = true
|
|
format = "snake_case"
|
|
|
|
custom_formats = {
|
|
private_snake = {
|
|
description = "snake_case with leading _"
|
|
regex = "^[_a-z][a-z0-9_]*$"
|
|
}
|
|
kebab = {
|
|
description = "lower kebab case"
|
|
regex = "^[a-z][a-z0-9-]*$"
|
|
}
|
|
}
|
|
|
|
locals {
|
|
format = "private_snake"
|
|
}
|
|
|
|
module {
|
|
format = "kebab"
|
|
}
|
|
}
|